Browse Source

Add specter-desktop app (#339)

Co-authored-by: Luke Childs <lukechilds123@gmail.com>
exclude-app-data-chown
Kim Neunert 4 years ago
committed by GitHub
parent
commit
5a763f6c19
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      apps/specter-desktop/data/config.json
  2. 11
      apps/specter-desktop/data/users.json
  3. 31
      apps/specter-desktop/docker-compose.yml
  4. 4
      scripts/configure
  5. 2
      templates/.env-sample
  6. 4
      templates/torrc-sample

26
apps/specter-desktop/data/config.json

@ -0,0 +1,26 @@
{
"rpc": {
"autodetect": true,
"datadir": "/data/.bitcoin",
"user": "",
"password": "",
"port": "",
"host": "localhost",
"protocol": "http"
},
"auth": "usernamepassword",
"explorers": {
"main": "",
"test": "",
"regtest": "",
"signet": ""
},
"hwi_bridge_url": "/hwi/api/",
"uid": "417dbd7490ff1464",
"unit": "btc",
"price_check": false,
"alt_rate": 1,
"alt_symbol": "BTC",
"price_provider": "",
"validate_merkle_proofs": false
}

11
apps/specter-desktop/data/users.json

@ -0,0 +1,11 @@
[
{
"id": "admin",
"username": "admin",
"password": {
"salt": "Raqdb55MYPm8uk9p94IuirPwvDmPsNg5H3LIUQzw9d0=",
"pwdhash": "w1PLHkdKOhGgDyGzTUxYoyyzZf/VKLi5SjLoE28rffQ="
},
"is_admin": true
}
]

31
apps/specter-desktop/docker-compose.yml

@ -0,0 +1,31 @@
version: "3.7"
x-logging:
&default-logging
driver: journald
options:
tag: "umbrel-app {{.Name}}"
services:
web:
image: lncm/specter-desktop:v0.10.4@sha256:bca14d04397d26fd9da085e0f5c97c6fc89dccff39a22719584d13b352fe1800
stop_signal: SIGINT
logging: *default-logging
restart: on-failure
stop_grace_period: 5m
ports:
- "$APP_SPECTER_DESKTOP_PORT:$APP_SPECTER_DESKTOP_PORT"
volumes:
- ${APP_DATA_DIR}/data:/data
command:
- --host=0.0.0.0
- --specter-data-folder=/data
environment:
BTC_RPC_USER: $BITCOIN_RPC_USER
BTC_RPC_PASSWORD: $BITCOIN_RPC_PASS
BTC_RPC_HOST: $BITCOIN_IP
BTC_RPC_PORT: $BITCOIN_RPC_PORT
BTC_RPC_PROTOCOL: http
networks:
default:
ipv4_address: $APP_SPECTER_DESKTOP_IP

4
scripts/configure

@ -131,6 +131,8 @@ APP_RIDE_THE_LIGHTNING_IP="10.0.1.3"
APP_RIDE_THE_LIGHTNING_PORT="3001"
APP_LIGHTNING_TERMINAL_IP="10.0.1.4"
APP_LIGHTNING_TERMINAL_PORT="3004"
APP_SPECTER_DESKTOP_IP="10.0.1.5"
APP_SPECTER_DESKTOP_PORT="25441"
# Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then
@ -261,6 +263,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-ride-the-lightning-port>/${APP_RIDE_THE_LIGHTNING_PORT}/g" "${template}"
sed -i "s/<app-lightning-terminal-ip>/${APP_LIGHTNING_TERMINAL_IP}/g" "${template}"
sed -i "s/<app-lightning-terminal-port>/${APP_LIGHTNING_TERMINAL_PORT}/g" "${template}"
sed -i "s/<app-specter-desktop-ip>/${APP_SPECTER_DESKTOP_IP}/g" "${template}"
sed -i "s/<app-specter-desktop-port>/${APP_SPECTER_DESKTOP_PORT}/g" "${template}"
done

2
templates/.env-sample

@ -35,3 +35,5 @@ APP_RIDE_THE_LIGHTNING_IP=<app-ride-the-lightning-ip>
APP_RIDE_THE_LIGHTNING_PORT=<app-ride-the-lightning-port>
APP_LIGHTNING_TERMINAL_IP=<app-lightning-terminal-ip>
APP_LIGHTNING_TERMINAL_PORT=<app-lightning-terminal-port>
APP_SPECTER_DESKTOP_IP=<app-specter-desktop-ip>
APP_SPECTER_DESKTOP_PORT=<app-specter-desktop-port>

4
templates/torrc-sample

@ -53,4 +53,8 @@ HiddenServicePort 80 <app-ride-the-lightning-ip>:<app-ride-the-lightning-port>
HiddenServiceDir /var/lib/tor/app-lightning-terminal
HiddenServicePort 80 <app-lightning-terminal-ip>:<app-lightning-terminal-port>
# specter-desktop Hidden Service
HiddenServiceDir /var/lib/tor/app-specter-desktop
HiddenServicePort 80 <app-specter-desktop-ip>:<app-specter-desktop-port>
HashedControlPassword <password>

Loading…
Cancel
Save