2022-04-20 20:32:07 +00:00
|
|
|
export APP_SAMOURAI_SERVER_IP="10.21.21.22"
|
|
|
|
export APP_SAMOURAI_SERVER_DOJO_PORT="3009"
|
|
|
|
export APP_SAMOURAI_SERVER_CONNECT_PORT="3005"
|
|
|
|
export APP_SAMOURAI_SERVER_WHIRLPOOL_IP="10.21.21.23"
|
|
|
|
export APP_SAMOURAI_SERVER_WHIRLPOOL_PORT="8898"
|
|
|
|
export APP_SAMOURAI_SERVER_DB_IP="10.21.21.24"
|
|
|
|
export APP_SAMOURAI_SERVER_NODE_IP="10.21.21.25"
|
|
|
|
|
2022-05-16 13:30:51 +00:00
|
|
|
dojo_hidden_service_file="${EXPORTS_TOR_DATA_DIR}/app-${EXPORTS_APP_ID}-dojo/hostname"
|
|
|
|
whirlpool_hidden_service_file="${EXPORTS_TOR_DATA_DIR}/app-${EXPORTS_APP_ID}-whirlpool/hostname"
|
2022-05-27 10:14:11 +00:00
|
|
|
export APP_SAMOURAI_SERVER_DOJO_HIDDEN_SERVICE="$(cat "${dojo_hidden_service_file}" 2>/dev/null || echo "notyetset.onion")"
|
|
|
|
export APP_SAMOURAI_SERVER_WHIRLPOOL_HIDDEN_SERVICE="$(cat "${whirlpool_hidden_service_file}" 2>/dev/null || echo "notyetset.onion")"
|
|
|
|
export APP_SAMOURAI_SERVER_NODE_API_KEY=$(derive_entropy "env-${app_entropy_identifier}-NODE_API_KEY")
|
|
|
|
export APP_SAMOURAI_SERVER_NODE_ADMIN_KEY=$(derive_entropy "env-${app_entropy_identifier}-NODE_ADMIN_KEY")
|
|
|
|
export APP_SAMOURAI_SERVER_NODE_JWT_SECRET=$(derive_entropy "env-${app_entropy_identifier}-NODE_JWT_SECRET")
|
|
|
|
export APP_SAMOURAI_SERVER_WHIRLPOOL_API_KEY=$(derive_entropy "env-${app_entropy_identifier}-WHIRLPOOL_API_KEY")
|