From c622340b498bc4246add460156a9c45c95dfa624 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Mon, 27 Dec 2021 09:18:59 -0600 Subject: [PATCH] Add helipad app (#1174) Co-authored-by: Luke Childs --- apps/helipad/data/.gitkeep | 0 apps/helipad/docker-compose.yml | 19 +++++++++++++++++++ scripts/configure | 4 ++++ templates/.env-sample | 2 ++ templates/torrc-apps-3-sample | 4 ++++ 5 files changed, 29 insertions(+) create mode 100644 apps/helipad/data/.gitkeep create mode 100644 apps/helipad/docker-compose.yml diff --git a/apps/helipad/data/.gitkeep b/apps/helipad/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/apps/helipad/docker-compose.yml b/apps/helipad/docker-compose.yml new file mode 100644 index 0000000..b4208e5 --- /dev/null +++ b/apps/helipad/docker-compose.yml @@ -0,0 +1,19 @@ +version: "3.7" + +services: + web: + image: podcastindexorg/podcasting20-helipad:v0.1.5@sha256:2021a21cb650d6d010fac846268644acfee62b54ac7f75c758aae160a2c6bd39 + init: true + restart: on-failure + stop_grace_period: 1m + user: "1000:1000" + ports: + - ${APP_HELIPAD_PORT}:2112 + volumes: + - ${APP_DATA_DIR}/data:/data + - ${LND_DATA_DIR}:/lnd:ro + environment: + LND_URL: "$LND_IP:$LND_GRPC_PORT" + networks: + default: + ipv4_address: $APP_HELIPAD_IP diff --git a/scripts/configure b/scripts/configure index b3dc7de..97c1665 100755 --- a/scripts/configure +++ b/scripts/configure @@ -219,6 +219,8 @@ APP_SYNCTHING_PORT="8384" APP_SYNCTHING_SYNC_PORT="22000" APP_UPTIME_KUMA_PORT="8385" APP_UPTIME_KUMA_IP="10.21.21.62" +APP_HELIPAD_PORT="2112" +APP_HELIPAD_IP="10.21.21.65" # Generate RPC credentials if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then @@ -435,6 +437,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" " sed -i "s//${APP_SYNCTHING_SYNC_PORT}/g" "${template}" sed -i "s//${APP_UPTIME_KUMA_PORT}/g" "${template}" sed -i "s//${APP_UPTIME_KUMA_IP}/g" "${template}" + sed -i "s//${APP_HELIPAD_PORT}/g" "${template}" + sed -i "s//${APP_HELIPAD_IP}/g" "${template}" done ########################################################## diff --git a/templates/.env-sample b/templates/.env-sample index 000572d..140f916 100644 --- a/templates/.env-sample +++ b/templates/.env-sample @@ -113,3 +113,5 @@ APP_SYNCTHING_PORT= APP_SYNCTHING_SYNC_PORT= APP_UPTIME_KUMA_PORT= APP_UPTIME_KUMA_IP= +APP_HELIPAD_PORT= +APP_HELIPAD_IP= \ No newline at end of file diff --git a/templates/torrc-apps-3-sample b/templates/torrc-apps-3-sample index 889c010..152a2d9 100644 --- a/templates/torrc-apps-3-sample +++ b/templates/torrc-apps-3-sample @@ -48,3 +48,7 @@ HiddenServicePort 80 : # uptime-kuma Hidden Service HiddenServiceDir /var/lib/tor/app-uptime-kuma HiddenServicePort 80 :3001 + +# helipad Hidden Service +HiddenServiceDir /var/lib/tor/app-helipad +HiddenServicePort 80 :2112