Browse Source

Add lightning-shell app (#1146)

Co-authored-by: Luke Childs <lukechilds123@gmail.com>
dashboard-0.3.31
Ioan Bizău 3 years ago
committed by GitHub
parent
commit
7a60161824
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 0
      apps/lightning-shell/data/.gitkeep
  2. 19
      apps/lightning-shell/docker-compose.yml
  3. 28
      apps/registry.json
  4. 4
      scripts/configure
  5. 2
      templates/.env-sample
  6. 4
      templates/torrc-apps-3-sample

0
apps/lightning-shell/data/.gitkeep

19
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

28
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
}
]

4
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>/${APP_HELIPAD_IP}/g" "${template}"
sed -i "s/<app-itchysats-ip>/${APP_ITCHYSATS_IP}/g" "${template}"
sed -i "s/<app-itchysats-port>/${APP_ITCHYSATS_PORT}/g" "${template}"
sed -i "s/<app-lightning-shell-port>/${APP_LIGHTNING_SHELL_PORT}/g" "${template}"
sed -i "s/<app-lightning-shell-ip>/${APP_LIGHTNING_SHELL_IP}/g" "${template}"
done
##########################################################

2
templates/.env-sample

@ -117,3 +117,5 @@ APP_HELIPAD_PORT=<app-helipad-port>
APP_HELIPAD_IP=<app-helipad-ip>
APP_ITCHYSATS_IP=<app-itchysats-ip>
APP_ITCHYSATS_PORT=<app-itchysats-port>
APP_LIGHTNING_SHELL_PORT=<app-lightning-shell-port>
APP_LIGHTNING_SHELL_IP=<app-lightning-shell-ip>

4
templates/torrc-apps-3-sample

@ -56,3 +56,7 @@ HiddenServicePort 80 <app-helipad-ip>:2112
# itchysats Hidden Service
HiddenServiceDir /var/lib/tor/app-itchysats
HiddenServicePort 80 <app-itchysats-ip>:8000
# lightning-shell Hidden Service
HiddenServiceDir /var/lib/tor/app-lightning-shell
HiddenServicePort 80 <app-lightning-shell-ip>:7681

Loading…
Cancel
Save