Skip to content

Commit

Permalink
Add ride-the-lightning app (getumbrel#336)
Browse files Browse the repository at this point in the history

Co-authored-by: Luke Childs <lukechilds123@gmail.com>
  • Loading branch information
2 people authored and AaronDewes committed Dec 30, 2020
1 parent 27579d5 commit 317b96a
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 0 deletions.
57 changes: 57 additions & 0 deletions apps/ride-the-lightning/docker-compose.yml
@@ -0,0 +1,57 @@
version: "3.7"

x-logging:
&default-logging
driver: journald
options:
tag: "umbrel-app {{.Name}}"

services:
web:
image: shahanafarooqui/rtl:0.10.0@sha256:036d94c582911caa74cbe8a0f5646d98b3549010bdbdd2cebd92d3b08a00d82a
user: "1000:1000"
logging: *default-logging
restart: on-failure
stop_grace_period: 5m
ports:
- "$APP_RIDE_THE_LIGHTNING_PORT:$APP_RIDE_THE_LIGHTNING_PORT"
volumes:
- ${APP_DATA_DIR}/rtl:/data
- ${LND_DATA_DIR}:/lnd:ro
- ${BITCOIN_DATA_DIR}:/bitcoin:ro
environment:
# App config
PORT: $APP_RIDE_THE_LIGHTNING_PORT
RTL_CONFIG_PATH: "/data"
CHANNEL_BACKUP_PATH: "/data/backup"
LN_IMPLEMENTATION: "LND"

# LND connection details
LN_SERVER_URL: "https://$LND_IP:$LND_REST_PORT"
MACAROON_PATH: "/lnd/data/chain/bitcoin/$BITCOIN_NETWORK"
CONFIG_PATH: "/lnd/lnd.conf"

# Loop
SWAP_SERVER_URL: "https://loop:8081"
SWAP_MACAROON_PATH: "/data/loop/$BITCOIN_NETWORK"
networks:
default:
ipv4_address: $APP_RIDE_THE_LIGHTNING_IP

loop:
image: louneskmt/loop:v0.11.2-beta@sha256:97b481a52e3b3f336a21d3be0eb1414dcd72e230de2e22a57287d15aab0a7af0
user: "1000:1000"
logging: *default-logging
restart: on-failure
stop_grace_period: 5m
volumes:
- ${APP_DATA_DIR}/loop:/data
- ${LND_DATA_DIR}:/lnd:ro
environment:
HOME: "/data"
command:
- --network=$BITCOIN_NETWORK
- --lnd.host="$LND_IP:$LND_GRPC_PORT"
- --lnd.macaroondir="/lnd/data/chain/bitcoin/$BITCOIN_NETWORK"
- --lnd.tlspath="/lnd/tls.cert"
- --restlisten=0.0.0.0:8081
Empty file.
22 changes: 22 additions & 0 deletions apps/ride-the-lightning/rtl/RTL-Config.json
@@ -0,0 +1,22 @@
{
"multiPass": "moneyprintergobrrr",
"defaultNodeIndex": 1,
"SSO": {
"rtlSSO": 0,
"rtlCookiePath": "",
"logoutRedirectLink": ""
},
"nodes": [
{
"index": 1,
"lnNode": "Umbrel",
"Settings": {
"userPersona": "MERCHANT",
"themeMode": "DAY",
"themeColor": "PURPLE",
"enableLogging": true,
"fiatConversion": true
}
}
]
}
4 changes: 4 additions & 0 deletions scripts/configure
Expand Up @@ -127,6 +127,8 @@ APP_THUNDERHUB_IP="10.0.1.1"
APP_THUNDERHUB_PORT="3000"
APP_SPHINX_RELAY_IP="10.0.1.2"
APP_SPHINX_RELAY_PORT="3300"
APP_RIDE_THE_LIGHTNING_IP="10.0.1.3"
APP_RIDE_THE_LIGHTNING_PORT="3001"

# Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then
Expand Down Expand Up @@ -253,6 +255,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-thunderhub-port>/${APP_THUNDERHUB_PORT}/g" "${template}"
sed -i "s/<app-sphinx-relay-ip>/${APP_SPHINX_RELAY_IP}/g" "${template}"
sed -i "s/<app-sphinx-relay-port>/${APP_SPHINX_RELAY_PORT}/g" "${template}"
sed -i "s/<app-ride-the-lightning-ip>/${APP_RIDE_THE_LIGHTNING_IP}/g" "${template}"
sed -i "s/<app-ride-the-lightning-port>/${APP_RIDE_THE_LIGHTNING_PORT}/g" "${template}"
done


Expand Down
2 changes: 2 additions & 0 deletions templates/.env-sample
Expand Up @@ -31,3 +31,5 @@ APP_THUNDERHUB_IP=<app-thunderhub-ip>
APP_THUNDERHUB_PORT=<app-thunderhub-port>
APP_SPHINX_RELAY_IP=<app-sphinx-relay-ip>
APP_SPHINX_RELAY_PORT=<app-sphinx-relay-port>
APP_RIDE_THE_LIGHTNING_IP=<app-ride-the-lightning-ip>
APP_RIDE_THE_LIGHTNING_PORT=<app-ride-the-lightning-port>
4 changes: 4 additions & 0 deletions templates/torrc-sample
Expand Up @@ -45,4 +45,8 @@ HiddenServiceDir /var/lib/tor/app-sphinx-relay
HiddenServicePort 80 <app-sphinx-relay-ip>:<app-sphinx-relay-port>
HiddenServicePort <app-sphinx-relay-port> <app-sphinx-relay-ip>:<app-sphinx-relay-port>

# ride-the-lightning Hidden Service
HiddenServiceDir /var/lib/tor/app-ride-the-lightning
HiddenServicePort 80 <app-ride-the-lightning-ip>:<app-ride-the-lightning-port>

HashedControlPassword <password>

0 comments on commit 317b96a

Please sign in to comment.