umbrel-apps/elements/exports.sh
Steven Briscoe 11f36560e8
Remove hard-coded container IPs (#310)
Co-authored-by: Steven Briscoe <me@stevenbriscoe.com>
2022-12-04 20:18:22 +00:00

8 lines
548 B
Bash

export APP_ELEMENTS_NODE_RPC_PORT="7041"
export APP_ELEMENTS_NODE_P2P_PORT="18332"
local app_elements_rpc_hidden_service_file="${EXPORTS_TOR_DATA_DIR}/app-${EXPORTS_APP_ID}-rpc/hostname"
local app_elements_p2p_hidden_service_file="${EXPORTS_TOR_DATA_DIR}/app-${EXPORTS_APP_ID}-p2p/hostname"
export APP_ELEMENTS_RPC_HIDDEN_SERVICE="$(cat "${app_elements_rpc_hidden_service_file}" 2>/dev/null || echo "notyetset.onion")"
export APP_ELEMENTS_P2P_HIDDEN_SERVICE="$(cat "${app_elements_p2p_hidden_service_file}" 2>/dev/null || echo "notyetset.onion")"