From 202eb6c81c05ecde87275d83dab12872b7be8f53 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Sat, 7 Jan 2023 23:48:47 -0600 Subject: [PATCH] Fix issue where thunderhub config would get overwritten on reboot --- rootfs/standard/usr/bin/mynode_startup.sh | 1 + .../standard/usr/share/mynode/thunderhub.env | 41 ++++++++++++++++--- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/rootfs/standard/usr/bin/mynode_startup.sh b/rootfs/standard/usr/bin/mynode_startup.sh index 8e6fe038..e2455b8f 100755 --- a/rootfs/standard/usr/bin/mynode_startup.sh +++ b/rootfs/standard/usr/bin/mynode_startup.sh @@ -436,6 +436,7 @@ THUNDERHUB_CONFIG_UPDATE_NUM=1 if [ ! -f /mnt/hdd/mynode/thunderhub/update_settings_$THUNDERHUB_CONFIG_UPDATE_NUM ]; then cp -f /usr/share/mynode/thunderhub.env /mnt/hdd/mynode/thunderhub/.env.local cp -f /usr/share/mynode/thub_config.yaml /mnt/hdd/mynode/thunderhub/thub_config.yaml + touch /mnt/hdd/mynode/thunderhub/update_settings_$THUNDERHUB_CONFIG_UPDATE_NUM fi if [ -f /mnt/hdd/mynode/thunderhub/thub_config.yaml ]; then if [ -f /home/bitcoin/.mynode/.hashedpw_bcrypt ]; then diff --git a/rootfs/standard/usr/share/mynode/thunderhub.env b/rootfs/standard/usr/share/mynode/thunderhub.env index 73ccd8ee..6b235100 100644 --- a/rootfs/standard/usr/share/mynode/thunderhub.env +++ b/rootfs/standard/usr/share/mynode/thunderhub.env @@ -2,26 +2,49 @@ # Server Configs # ----------- LOG_LEVEL='debug' -# HODL_KEY='HODL_HODL_API_KEY' -# BASE_PATH='/basePath' +# LOG_JSON=true +# TOR_PROXY_SERVER=socks://127.0.0.1:9050 +# DISABLE_TWOFA=true + +# ----------- +# URLs +# ----------- +# MEMPOOL_URL='https://mempool.space' + # ----------- # Interface Configs # ----------- THEME='dark' CURRENCY='sat' + +# ----------- +# Subscription Configs +# ----------- +# DISABLE_ALL_SUBS=true +# DISABLE_INVOICE_SUB=true +# DISABLE_PAYMENT_SUB=true +# DISABLE_FORWARD_SUB=true +# DISABLE_CHANNEL_SUB=true +# DISABLE_BACKUP_SUB=true + # ----------- # Privacy Configs # ----------- FETCH_PRICES=false FETCH_FEES=false -HODL_HODL=false DISABLE_LINKS=true -NO_CLIENT_ACCOUNTS=true +DISABLE_LNMARKETS=true NO_VERSION_CHECK=true + # ----------- # Account Configs # ----------- ACCOUNT_CONFIG_PATH='/mnt/hdd/mynode/thunderhub/thub_config.yaml' +# MASTER_PASSWORD_OVERRIDE='secretPasswordForAllAccounts' +# YML_ENV_1='' +# YML_ENV_2='' +# YML_ENV_3='' +# YML_ENV_4='' # ----------- # SSO Account Configs @@ -30,4 +53,12 @@ COOKIE_PATH='/opt/mynode/thunderhub/.cookie' SSO_SERVER_URL='127.0.0.1:10009' SSO_CERT_PATH='/home/bitcoin/.lnd/tls.cert' SSO_MACAROON_PATH=/home/bitcoin/.lnd/data/chain/bitcoin/mainnet/ -#LOGOUT_URL = 'http://LogoutToThisUrl.com' # If not set it will logout to "/login" \ No newline at end of file +# DANGEROUS_NO_SSO_AUTH=false +# LOGOUT_URL = 'http://LogoutToThisUrl.com' # If not set it will logout to "/login" + +# ----------- +# SSL Config +# ----------- +# PUBLIC_URL='app.example.com' +# SSL_PORT=8080 +# SSL_SAVE=true \ No newline at end of file