Browse Source

Add bleskomat-server app (#1175)

Co-authored-by: Luke Childs <lukechilds123@gmail.com>
rtl-0.12.1
Charles Hill 3 years ago
committed by GitHub
parent
commit
09417ff723
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 0
      apps/bleskomat-server/data/.gitkeep
  2. 0
      apps/bleskomat-server/data/db/.gitkeep
  3. 0
      apps/bleskomat-server/data/web/.gitkeep
  4. 48
      apps/bleskomat-server/docker-compose.yml
  5. 24
      apps/registry.json
  6. 6
      scripts/configure
  7. 5
      templates/.env-sample
  8. 4
      templates/torrc-server-sample

0
apps/bleskomat-server/data/.gitkeep

0
apps/bleskomat-server/data/db/.gitkeep

0
apps/bleskomat-server/data/web/.gitkeep

48
apps/bleskomat-server/docker-compose.yml

@ -0,0 +1,48 @@
version: "3.7"
services:
db:
image: postgres:10.20-stretch@sha256:130e08bb19199bd055e585e8938c5ebb0555dc13b445fad5b0bd727e4b75149c
user: "1000:1000"
restart: on-failure
stop_grace_period: 1m
volumes:
- $APP_DATA_DIR/data/db:/var/lib/postgresql/data
networks:
default:
ipv4_address: $APP_BLESKOMAT_SERVER_DB_IP
environment:
- POSTGRES_USER=bleskomat_server
- POSTGRES_DB=bleskomat_server
- POSTGRES_PASSWORD=moneyprintergobrrr
web:
image: bleskomat/bleskomat-server:1.3.4@sha256:7bd91b896c5ca4f69b7c9509b40ccfae273cc46120ec66b2e27b295b0186f230
user: "1000:1000"
restart: on-failure
stop_grace_period: 1m
depends_on:
- db
ports:
- "$APP_BLESKOMAT_SERVER_PORT:$APP_BLESKOMAT_SERVER_PORT"
volumes:
- $APP_DATA_DIR/data/web:/usr/src/app/data
- $LND_DATA_DIR:/lnd:ro
environment:
DEBUG: "bleskomat-server*,lnurl*"
BLESKOMAT_SERVER_HOST: "0.0.0.0"
BLESKOMAT_SERVER_PORT: "$APP_BLESKOMAT_SERVER_PORT"
BLESKOMAT_SERVER_URL: "$APP_HIDDEN_SERVICE"
BLESKOMAT_SERVER_ENDPOINT: "/u"
BLESKOMAT_SERVER_AUTH_API_KEYS: '[]'
BLESKOMAT_SERVER_LIGHTNING: '{"backend":"lnd","config":{"cert":"/lnd/tls.cert","protocol":"https","hostname":"$LND_IP:$LND_REST_PORT","macaroon":"/lnd/data/chain/bitcoin/$BITCOIN_NETWORK/admin.macaroon"}}'
BLESKOMAT_SERVER_STORE: '{"backend":"knex","config":{"client":"postgres","connection":{"host":"$APP_BLESKOMAT_SERVER_DB_IP","port":5432,"user":"bleskomat_server","password":"moneyprintergobrrr","database":"bleskomat_server"}}}'
BLESKOMAT_SERVER_COINRATES_DEFAULTS_PROVIDER: "coinbase"
BLESKOMAT_SERVER_ADMIN_WEB: "true"
BLESKOMAT_SERVER_ADMIN_PASSWORD_PLAINTEXT: "$APP_PASSWORD"
BLESKOMAT_SERVER_ENV_FILEPATH: "./data/.env"
networks:
default:
ipv4_address: $APP_BLESKOMAT_SERVER_IP

24
apps/registry.json

@ -991,5 +991,29 @@
"path": "",
"deterministicPassword": false,
"torOnly": false
},
{
"id": "bleskomat-server",
"category": "Wallet Servers",
"name": "Bleskomat Server",
"version": "v1.3.4",
"tagline": "Connect a Bleskomat ATM to your Lightning node",
"description": "The Bleskomat ATM is the next generation Bitcoin Lightning ATM. This app will allow you to easily connect your Bleskomat ATM to the Lightning node on your Umbrel. A simple web interface is provided which you can use to manage and authorize one or more Bleskomat ATMs as well as view a list of recent payments handled by the server.",
"developer": "Bleskomat",
"website": "https://www.bleskomat.com",
"dependencies": [
"lnd"
],
"repo": "https://github.com/samotari/bleskomat-server",
"support": "https://t.me/bleskomat",
"port": 3333,
"gallery": [
"1.jpg",
"2.jpg",
"3.jpg"
],
"path": "",
"deterministicPassword": true,
"torOnly": false
}
]

6
scripts/configure

@ -252,6 +252,9 @@ APP_SNOWFLAKE_PORT="3800"
APP_SNOWFLAKE_PROXY_IP="10.21.21.83"
APP_JAM_IP="10.21.21.84"
APP_JAM_PORT="5002"
APP_BLESKOMAT_SERVER_PORT="3333"
APP_BLESKOMAT_SERVER_IP="10.21.21.85"
APP_BLESKOMAT_SERVER_DB_IP="10.21.21.86"
# Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then
@ -504,6 +507,9 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-snowflake-proxy-ip>/${APP_SNOWFLAKE_PROXY_IP}/g" "${template}"
sed -i "s/<app-jam-ip>/${APP_JAM_IP}/g" "${template}"
sed -i "s/<app-jam-port>/${APP_JAM_PORT}/g" "${template}"
sed -i "s/<app-bleskomat-server-port>/${APP_BLESKOMAT_SERVER_PORT}/g" "${template}"
sed -i "s/<app-bleskomat-server-ip>/${APP_BLESKOMAT_SERVER_IP}/g" "${template}"
sed -i "s/<app-bleskomat-server-db-ip>/${APP_BLESKOMAT_SERVER_DB_IP}/g" "${template}"
done
##########################################################

5
templates/.env-sample

@ -149,4 +149,7 @@ APP_SNOWFLAKE_IP=<app-snowflake-ip>
APP_SNOWFLAKE_PORT=<app-snowflake-port>
APP_SNOWFLAKE_PROXY_IP=<app-snowflake-proxy-ip>
APP_JAM_IP=<app-jam-ip>
APP_JAM_PORT=<app-jam-port>
APP_JAM_PORT=<app-jam-port>
APP_BLESKOMAT_SERVER_PORT=<app-bleskomat-server-port>
APP_BLESKOMAT_SERVER_IP=<app-bleskomat-server-ip>
APP_BLESKOMAT_SERVER_DB_IP=<app-bleskomat-server-db-ip>

4
templates/torrc-server-sample

@ -221,3 +221,7 @@ HiddenServicePort 80 <app-snowflake-ip>:<app-snowflake-port>
# jam Hidden Service
HiddenServiceDir /data/app-jam
HiddenServicePort 80 <app-jam-ip>:80
# bleskomat-server Hidden Service
HiddenServiceDir /data/app-bleskomat-server
HiddenServicePort 80 <app-bleskomat-server-ip>:<app-bleskomat-server-port>

Loading…
Cancel
Save