From 7a601618248f243de0ce125d8ad9411c8a9dc128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ioan=20Biz=C4=83u?= Date: Sat, 8 Jan 2022 14:31:02 +0200 Subject: [PATCH] Add lightning-shell app (#1146) Co-authored-by: Luke Childs --- apps/lightning-shell/data/.gitkeep | 0 apps/lightning-shell/docker-compose.yml | 19 +++++++++++++++++ apps/registry.json | 28 +++++++++++++++++++++++-- scripts/configure | 4 ++++ templates/.env-sample | 2 ++ templates/torrc-apps-3-sample | 4 ++++ 6 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 apps/lightning-shell/data/.gitkeep create mode 100644 apps/lightning-shell/docker-compose.yml diff --git a/apps/lightning-shell/data/.gitkeep b/apps/lightning-shell/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/apps/lightning-shell/docker-compose.yml b/apps/lightning-shell/docker-compose.yml new file mode 100644 index 0000000..08c40ff --- /dev/null +++ b/apps/lightning-shell/docker-compose.yml @@ -0,0 +1,19 @@ +version: "3.7" + +services: + web: + image: ibz0/lightning-shell:v0.1.1@sha256:47e271333410475dad92a91b2e35a58c723bbf9cc688fc2cd6cec1013d469f28 + restart: on-failure + stop_grace_period: 1m + ports: + - ${APP_LIGHTNING_SHELL_PORT}:7681 + volumes: + - ${LND_DATA_DIR}:/lnd:ro + - ${APP_DATA_DIR}/data:/data + environment: + APP_PASSWORD: "${APP_PASSWORD}" + LND_IP: "${LND_IP}" + LND_GRPC_PORT: ${LND_GRPC_PORT} + networks: + default: + ipv4_address: $APP_LIGHTNING_SHELL_IP diff --git a/apps/registry.json b/apps/registry.json index 1a7ee05..a15eb14 100644 --- a/apps/registry.json +++ b/apps/registry.json @@ -528,7 +528,7 @@ "id": "squeaknode", "category": "Social", "name": "Squeaknode", - "version": "0.1.194", + "version": "0.1.187", "tagline": "A peer-to-peer status feed with Lightning monetization", "description": "The Squeaknode app allows you to create, view, buy, and sell squeaks. A squeak is a single post that can contain up to 280 characters.\n\nThe Squeaknode timeline is ordered by the height of the block hash embedded in each squeak. Each squeak is signed with a digital signature of the private key of the author. Squeaks can be downloaded from any peer to any peer, but they remain locked until the downloader makes a Lightning payment to decrypt the content.", "developer": "Jonathan Zernik", @@ -662,7 +662,7 @@ "id": "helipad", "category": "Lightning Node Management", "name": "Helipad", - "version": "0.1.6", + "version": "0.1.5", "tagline": "View boosts and boost-a-grams from Podcasting 2.0 enabled apps", "description": "Helipad shows boosts and boost-a-gram messages coming in to your Lightning node from your listeners who are using Podcasting 2.0 apps.", "developer": "Podcastindex.org", @@ -705,5 +705,29 @@ "defaultUsername": "itchysats", "deterministicPassword": true, "torOnly": false + }, + { + "id": "lightning-shell", + "category": "Lightning Node Management", + "name": "Lightning Shell", + "version": "0.1.1", + "tagline": "Web shell with a selection of LN node management utilities", + "description": "Lightning Shell is a web shell for the Umbrel personal server that includes the following utilities:\n\n- lncli\n- charge-lnd\n- lntop\n- rebalance-lnd\n- suez\n", + "developer": "Ioan Bizău", + "website": "https://ibz.me", + "dependencies": [ + "lnd" + ], + "repo": "https://ibz.github.io/lightning-shell/", + "support": "https://ibz.github.io/lightning-shell/issues", + "port": 7681, + "gallery": [ + "1.jpg", + "2.jpg", + "3.jpg" + ], + "path": "", + "defaultUsername": "umbrel", + "deterministicPassword": true } ] diff --git a/scripts/configure b/scripts/configure index 69218ba..e991958 100755 --- a/scripts/configure +++ b/scripts/configure @@ -223,6 +223,8 @@ APP_HELIPAD_PORT="2112" APP_HELIPAD_IP="10.21.21.65" APP_ITCHYSATS_IP="10.21.21.64" APP_ITCHYSATS_PORT="7113" +APP_LIGHTNING_SHELL_PORT="7681" +APP_LIGHTNING_SHELL_IP="10.21.21.66" # Generate RPC credentials if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then @@ -443,6 +445,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" " sed -i "s//${APP_HELIPAD_IP}/g" "${template}" sed -i "s//${APP_ITCHYSATS_IP}/g" "${template}" sed -i "s//${APP_ITCHYSATS_PORT}/g" "${template}" + sed -i "s//${APP_LIGHTNING_SHELL_PORT}/g" "${template}" + sed -i "s//${APP_LIGHTNING_SHELL_IP}/g" "${template}" done ########################################################## diff --git a/templates/.env-sample b/templates/.env-sample index 727578a..f42eec5 100644 --- a/templates/.env-sample +++ b/templates/.env-sample @@ -117,3 +117,5 @@ APP_HELIPAD_PORT= APP_HELIPAD_IP= APP_ITCHYSATS_IP= APP_ITCHYSATS_PORT= +APP_LIGHTNING_SHELL_PORT= +APP_LIGHTNING_SHELL_IP= diff --git a/templates/torrc-apps-3-sample b/templates/torrc-apps-3-sample index 6d3a6a4..0b183ba 100644 --- a/templates/torrc-apps-3-sample +++ b/templates/torrc-apps-3-sample @@ -56,3 +56,7 @@ HiddenServicePort 80 :2112 # itchysats Hidden Service HiddenServiceDir /var/lib/tor/app-itchysats HiddenServicePort 80 :8000 + +# lightning-shell Hidden Service +HiddenServiceDir /var/lib/tor/app-lightning-shell +HiddenServicePort 80 :7681