From 3f9c71eee1f30b79b6e0300ef76302f506b08c9e Mon Sep 17 00:00:00 2001 From: cryptosharks131 <38626122+cryptosharks131@users.noreply.github.com> Date: Wed, 2 Feb 2022 04:40:38 -0500 Subject: [PATCH] Add lndg app (#1189) Co-authored-by: Luke Childs --- apps/lndg/docker-compose.yml | 19 +++++++++++++++++++ apps/registry.json | 24 ++++++++++++++++++++++++ scripts/configure | 4 ++++ templates/.env-sample | 2 ++ templates/torrc-server-sample | 4 ++++ 5 files changed, 53 insertions(+) create mode 100644 apps/lndg/docker-compose.yml diff --git a/apps/lndg/docker-compose.yml b/apps/lndg/docker-compose.yml new file mode 100644 index 0000000..5032409 --- /dev/null +++ b/apps/lndg/docker-compose.yml @@ -0,0 +1,19 @@ +version: "3.7" + +services: + web: + image: ghcr.io/cryptosharks131/lndg:v1.0.2@sha256:3c55173dca8af79fd122587e5e53ddc68159ed7c3a4865a72c4e90b4b84ce787 + restart: on-failure + stop_grace_period: 1m + ports: + - "${APP_LNDG_PORT}:${APP_LNDG_PORT}" + volumes: + - ${LND_DATA_DIR}:/root/.lnd:ro + - ${APP_DATA_DIR}:/lndg/data + command: + - sh + - -c + - python initialize.py -net '${BITCOIN_NETWORK}' -server '${LND_IP}:${LND_GRPC_PORT}' -pw '${APP_PASSWORD}' -d && supervisord && python manage.py runserver 0.0.0.0:${APP_LNDG_PORT} + networks: + default: + ipv4_address: ${APP_LNDG_IP} diff --git a/apps/registry.json b/apps/registry.json index b908fc3..804c2ef 100644 --- a/apps/registry.json +++ b/apps/registry.json @@ -825,5 +825,29 @@ "path": "", "deterministicPassword": true, "torOnly": false + }, + { + "id": "lndg", + "category": "Lightning Node Management", + "name": "LNDg", + "version": "1.0.2", + "tagline": "Lite GUI web interface to analyze LND data and manage your node with automation.", + "description": "LNDg is your command center for running a profitable and efficient routing node. From quickly viewing your node's health, automated rebalancing, selecting new potential peers and much more.", + "developer": "cryptosharks131", + "website": "https://github.com/cryptosharks131", + "dependencies": [ + "lnd" + ], + "repo": "https://github.com/cryptosharks131/lndg", + "support": "https://t.me/+-RxoZdi7snk2ZGYx", + "port": 8889, + "gallery": [ + "1.jpg", + "2.jpg", + "3.jpg" + ], + "path": "", + "defaultUsername": "lndg-admin", + "deterministicPassword": true } ] diff --git a/scripts/configure b/scripts/configure index 44b6996..da4811b 100755 --- a/scripts/configure +++ b/scripts/configure @@ -232,6 +232,8 @@ APP_SUREDBITS_WALLET_IP="10.21.21.73" APP_SUREDBITS_WALLET_PORT="3020" APP_SUREDBITS_WALLET_SERVER_IP="10.21.21.74" APP_SUREDBITS_WALLET_P2P_PORT="2862" +APP_LNDG_IP="10.21.21.75" +APP_LNDG_PORT="8889" # Generate RPC credentials if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then @@ -466,6 +468,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" " sed -i "s//${APP_SUREDBITS_WALLET_PORT}/g" "${template}" sed -i "s//${APP_SUREDBITS_WALLET_SERVER_IP}/g" "${template}" sed -i "s//${APP_SUREDBITS_WALLET_P2P_PORT}/g" "${template}" + sed -i "s//${APP_LNDG_IP}/g" "${template}" + sed -i "s//${APP_LNDG_PORT}/g" "${template}" done ########################################################## diff --git a/templates/.env-sample b/templates/.env-sample index 9e84e62..354b7ef 100644 --- a/templates/.env-sample +++ b/templates/.env-sample @@ -132,3 +132,5 @@ APP_SUREDBITS_WALLET_IP= APP_SUREDBITS_WALLET_PORT= APP_SUREDBITS_WALLET_SERVER_IP= APP_SUREDBITS_WALLET_P2P_PORT= +APP_LNDG_IP= +APP_LNDG_PORT= \ No newline at end of file diff --git a/templates/torrc-server-sample b/templates/torrc-server-sample index 5465ac7..86d2a1f 100644 --- a/templates/torrc-server-sample +++ b/templates/torrc-server-sample @@ -193,3 +193,7 @@ HiddenServicePort 80 :3002 # suredbits-wallet p2p Hidden Service HiddenServiceDir /data/app-suredbits-wallet-p2p HiddenServicePort : + +# lndg Hidden Service +HiddenServiceDir /data/app-lndg +HiddenServicePort 80 :