Browse Source

export electrs vars to satisfy implements

main
nmfretz 1 month ago
parent
commit
08bb401455
  1. 14
      electrumx/exports.sh

14
electrumx/exports.sh

@ -12,5 +12,19 @@ if [[ "${BITCOIN_NETWORK}" == "testnet3" ]]; then
export APP_ELECTRUMX_BITCOIN_NETWORK="testnet"
fi
for var in \
IP \
NODE_IP \
NODE_PORT \
; do
electrs_var="APP_ELECTRS_${var}"
electrumx_var="APP_ELECTRUMX_${var}"
if [ -n "${!electrumx_var-}" ]; then
export "$electrs_var"="${!electrs_var:=${!electrumx_var}}"
else
echo "Warning: $electrumx_var is unset or empty"
fi
done
rpc_hidden_service_file="${EXPORTS_TOR_DATA_DIR}/app-${EXPORTS_APP_ID}-tpc/hostname"
export APP_ELECTRUMX_RPC_HIDDEN_SERVICE="$(cat "${rpc_hidden_service_file}" 2>/dev/null || echo "notyetset.onion")"

Loading…
Cancel
Save