Fix issue where thunderhub config would get overwritten on reboot

This commit is contained in:
Taylor Helsper 2023-01-07 23:48:47 -06:00
parent dcaded8409
commit 202eb6c81c
2 changed files with 37 additions and 5 deletions

View File

@ -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

View File

@ -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"
# 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