Skip to content

Commit

Permalink
Add sparkkiosk app (#1312)
Browse files Browse the repository at this point in the history

Co-authored-by: Luke Childs <lukechilds123@gmail.com>
  • Loading branch information
jensgertsen and lukechilds committed Apr 4, 2022
1 parent ed7e04a commit 481b237
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 0 deletions.
24 changes: 24 additions & 0 deletions apps/registry.json
Expand Up @@ -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
}
]
Empty file added apps/sparkkiosk/data/.gitkeep
Empty file.
31 changes: 31 additions & 0 deletions apps/sparkkiosk/docker-compose.yml
@@ -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
4 changes: 4 additions & 0 deletions scripts/configure
Expand Up @@ -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
Expand Down Expand Up @@ -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

##########################################################
Expand Down
2 changes: 2 additions & 0 deletions templates/.env-sample
Expand Up @@ -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>
4 changes: 4 additions & 0 deletions templates/torrc-server-sample
Expand Up @@ -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

0 comments on commit 481b237

Please sign in to comment.