Browse Source
Add sparkkiosk app (#1312 )
Co-authored-by: Luke Childs <lukechilds123@gmail.com>
0.4.17
jensgertsen
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
65 additions and
0 deletions
apps/registry.json
apps/sparkkiosk/data/.gitkeep
apps/sparkkiosk/docker-compose.yml
scripts/configure
templates/.env-sample
templates/torrc-server-sample
@ -1040,5 +1040,29 @@
"deterministicPassword" : true ,
"defaultUsername" : "umbrel" ,
"torOnly" : false
} ,
{
"id" : "sparkkiosk" ,
"category" : "Finance" ,
"name" : "Sparkkiosk" ,
"version" : "v1.0.0" ,
"tagline" : "Minimal LNURL kiosk" ,
"description" : "Use sparkkiosk to enable lightning payments from printed QR codes in selfservice kiosks / cafés or other places where POS interaction is not needed or an option.\n\nLog into the dashboard, create a new LNURL, set currency and amount and download QR to print. Monitor latest invoices." ,
"developer" : "Jens Gertsen" ,
"website" : "https://github.com/jensgertsen/sparkkiosk" ,
"dependencies" : [
"lnd"
] ,
"repo" : "https://github.com/jensgertsen/sparkkiosk" ,
"support" : "https://github.com/jensgertsen/sparkkiosk/discussions" ,
"port" : 21214 ,
"gallery" : [
"1.jpg" ,
"2.jpg" ,
"3.jpg"
] ,
"path" : "" ,
"deterministicPassword" : true ,
"torOnly" : false
}
]
@ -0,0 +1,31 @@
version : "3.7"
services:
web:
image : jensgertsen/sparkkiosk:v1.0.0@sha256:d49500ce9c47d04436e64dae7e336416aa32f83673058154aa8a983e1420008c
user : 1000 : 1000
init : true
restart : on -failure
stop_grace_period : 1m
ports:
- $APP_SPARKKIOSK_PORT:21214
volumes:
- ${APP_DATA_DIR}/data:/data
- ${LND_DATA_DIR}:/lnd:ro
environment:
# Global
# LND
LND_GRPC_ENDPOINT : $LND_IP
LND_GRPC_PORT : $LND_GRPC_PORT
LND_GRPC_CERT : "/lnd/tls.cert"
LND_GRPC_MACAROON : "/lnd/data/chain/bitcoin/$BITCOIN_NETWORK/admin.macaroon"
# App
APP_HIDDEN_SERVICE : http://$APP_HIDDEN_SERVICE
APP_PASSWORD : $APP_PASSWORD
APP_DOMAIN : $APP_DOMAIN
networks:
default:
ipv4_address : $APP_SPARKKIOSK_IP
@ -258,6 +258,8 @@ APP_BLESKOMAT_SERVER_IP="10.21.21.85"
APP_BLESKOMAT_SERVER_DB_IP="10.21.21.86"
APP_AGORA_IP="10.21.21.87"
APP_AGORA_PORT="12080"
APP_SPARKKIOSK_IP="10.21.21.88"
APP_SPARKKIOSK_PORT="21214"
# Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then
@ -516,6 +518,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-bleskomat-server-db-ip>/${APP_BLESKOMAT_SERVER_DB_IP}/g" "${template}"
sed -i "s/<app-agora-ip>/${APP_AGORA_IP}/g" "${template}"
sed -i "s/<app-agora-port>/${APP_AGORA_PORT}/g" "${template}"
sed -i "s/<app-sparkkiosk-ip>/${APP_SPARKKIOSK_IP}/g" "${template}"
sed -i "s/<app-sparkkiosk-port>/${APP_SPARKKIOSK_PORT}/g" "${template}"
done
##########################################################
@ -156,3 +156,5 @@ APP_BLESKOMAT_SERVER_IP=<app-bleskomat-server-ip>
APP_BLESKOMAT_SERVER_DB_IP=<app-bleskomat-server-db-ip>
APP_AGORA_IP=<app-agora-ip>
APP_AGORA_PORT=<app-agora-port>
APP_SPARKKIOSK_IP=<app-sparkkiosk-ip>
APP_SPARKKIOSK_PORT=<app-sparkkiosk-port>
@ -229,3 +229,7 @@ HiddenServicePort 80 <app-bleskomat-server-ip>:<app-bleskomat-server-port>
# agora Hidden Service
HiddenServiceDir /data/app-agora
HiddenServicePort 80 <app-agora-ip>:80
# sparkkiosk Hidden Service
HiddenServiceDir /data/app-sparkkiosk
HiddenServicePort 80 <app-sparkkiosk-ip>:21214