Luke Childs
2 years ago
46 changed files with 327 additions and 86 deletions
@ -0,0 +1,26 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# Delay booting Bitcoin until the RPC and P2P Tor Hidden Services are ready |
|||
|
|||
HIDDEN_SERVICE_FILE="${TOR_DATA_DIR}/app-${APP_ID}-rpc/hostname" |
|||
|
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
exit |
|||
fi |
|||
|
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach bitcoind |
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach tor |
|||
|
|||
echo "App: ${APP_ID} - Generating Tor Hidden Service..." |
|||
|
|||
for attempt in $(seq 1 100); do |
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file created successfully!" |
|||
break |
|||
fi |
|||
sleep 0.1 |
|||
done |
|||
|
|||
if [[ ! -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file wasn't created" |
|||
fi |
@ -0,0 +1,26 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# Delay booting Core Lightning until the REST Tor Hidden Service is ready |
|||
|
|||
HIDDEN_SERVICE_FILE="${TOR_DATA_DIR}/app-${APP_ID}-rest/hostname" |
|||
|
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
exit |
|||
fi |
|||
|
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach c-lightning-rest |
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach tor |
|||
|
|||
echo "App: ${APP_ID} - Generating Tor Hidden Service..." |
|||
|
|||
for attempt in $(seq 1 100); do |
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file created successfully!" |
|||
break |
|||
fi |
|||
sleep 0.1 |
|||
done |
|||
|
|||
if [[ ! -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file wasn't created" |
|||
fi |
@ -1,7 +1,3 @@ |
|||
# Core Lightning REST Hidden Service |
|||
HiddenServiceDir /data/app-$APP_ID-rest |
|||
HiddenServicePort $APP_CORE_LIGHTNING_REST_PORT $APP_CORE_LIGHTNING_REST_IP:$APP_CORE_LIGHTNING_REST_PORT |
|||
|
|||
# Core Lightning Frontend Hidden Service |
|||
HiddenServiceDir /data/app-$APP_ID |
|||
HiddenServicePort 80 $APP_PROXY_HOSTNAME:$APP_PROXY_PORT |
|||
HiddenServicePort $APP_CORE_LIGHTNING_REST_PORT $APP_CORE_LIGHTNING_REST_IP:$APP_CORE_LIGHTNING_REST_PORT |
@ -0,0 +1,26 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# Delay booting Electrs until the RPC Tor Hidden Service is ready |
|||
|
|||
HIDDEN_SERVICE_FILE="${TOR_DATA_DIR}/app-${APP_ID}-rpc/hostname" |
|||
|
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
exit |
|||
fi |
|||
|
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach electrs |
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach tor |
|||
|
|||
echo "App: ${APP_ID} - Generating Tor Hidden Service..." |
|||
|
|||
for attempt in $(seq 1 100); do |
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file created successfully!" |
|||
break |
|||
fi |
|||
sleep 0.1 |
|||
done |
|||
|
|||
if [[ ! -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file wasn't created" |
|||
fi |
@ -1,7 +1,3 @@ |
|||
# Electrs RPC Hidden Service |
|||
HiddenServiceDir /data/app-$APP_ID-rpc |
|||
HiddenServicePort $APP_ELECTRS_NODE_PORT $APP_ELECTRS_NODE_IP:$APP_ELECTRS_NODE_PORT |
|||
|
|||
# Electrs Frontend Hidden Service |
|||
HiddenServiceDir /data/app-$APP_ID |
|||
HiddenServicePort 80 $APP_PROXY_HOSTNAME:$APP_PROXY_PORT |
|||
HiddenServicePort $APP_ELECTRS_NODE_PORT $APP_ELECTRS_NODE_IP:$APP_ELECTRS_NODE_PORT |
@ -0,0 +1,26 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# Delay booting Elements until the RPC and P2P Tor Hidden Services are ready |
|||
|
|||
HIDDEN_SERVICE_FILE="${TOR_DATA_DIR}/app-${APP_ID}-p2p/hostname" |
|||
|
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
exit |
|||
fi |
|||
|
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach node |
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach tor |
|||
|
|||
echo "App: ${APP_ID} - Generating Tor Hidden Service..." |
|||
|
|||
for attempt in $(seq 1 100); do |
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file created successfully!" |
|||
break |
|||
fi |
|||
sleep 0.1 |
|||
done |
|||
|
|||
if [[ ! -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file wasn't created" |
|||
fi |
@ -1,4 +1,5 @@ |
|||
export APP_GITEA_PORT="8085" |
|||
export APP_GITEA_SSH_PORT="2222" |
|||
export APP_GITEA_IP="10.21.21.39" |
|||
export APP_GITEA_DB_IP="10.21.21.40" |
|||
export APP_GITEA_DB_IP="10.21.21.40" |
|||
export APP_GITEA_TOR_HS_EXTRA_PORTS="22:${APP_GITEA_IP}:${APP_GITEA_SSH_PORT}" |
@ -1,4 +0,0 @@ |
|||
# gitea Hidden Service |
|||
HiddenServiceDir /data/app-gitea |
|||
HiddenServicePort 80 $APP_GITEA_IP:$APP_GITEA_PORT |
|||
HiddenServicePort 22 $APP_GITEA_IP:$APP_GITEA_SSH_PORT |
@ -1,4 +0,0 @@ |
|||
# kollider Hidden Service |
|||
HiddenServiceDir /data/app-kollider |
|||
HiddenServicePort 80 $APP_KOLLIDER_IP:3000 |
|||
HiddenServicePort 4244 $APP_KOLLIDER_WS_IP:8080 |
@ -0,0 +1,26 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# Delay booting Lightning until the GRPC and REST Tor Hidden Services are ready |
|||
|
|||
HIDDEN_SERVICE_FILE="${TOR_DATA_DIR}/app-${APP_ID}-grpc/hostname" |
|||
|
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
exit |
|||
fi |
|||
|
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach lnd |
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach tor |
|||
|
|||
echo "App: ${APP_ID} - Generating Tor Hidden Service..." |
|||
|
|||
for attempt in $(seq 1 100); do |
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file created successfully!" |
|||
break |
|||
fi |
|||
sleep 0.1 |
|||
done |
|||
|
|||
if [[ ! -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file wasn't created" |
|||
fi |
@ -0,0 +1,27 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# Delay booting Samourai Server until the Dojo and Whirlpool Tor Hidden Services are ready |
|||
|
|||
HIDDEN_SERVICE_FILE="${TOR_DATA_DIR}/app-${APP_ID}-whirlpool/hostname" |
|||
|
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
exit |
|||
fi |
|||
|
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach nginx |
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach whirlpool |
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach tor |
|||
|
|||
echo "App: ${APP_ID} - Generating Tor Hidden Service..." |
|||
|
|||
for attempt in $(seq 1 100); do |
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file created successfully!" |
|||
break |
|||
fi |
|||
sleep 0.1 |
|||
done |
|||
|
|||
if [[ ! -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file wasn't created" |
|||
fi |
@ -1,11 +1,7 @@ |
|||
# samourai-server dojo Hidden Service |
|||
HiddenServiceDir /data/app-samourai-server-dojo |
|||
HiddenServiceDir /data/app-$APP_ID-dojo |
|||
HiddenServicePort 80 $APP_SAMOURAI_SERVER_IP:80 |
|||
|
|||
# samourai-server whirlpool Hidden Service |
|||
HiddenServiceDir /data/app-samourai-server-whirlpool |
|||
HiddenServicePort 80 $APP_SAMOURAI_SERVER_WHIRLPOOL_IP:$APP_SAMOURAI_SERVER_WHIRLPOOL_PORT |
|||
|
|||
# samourai-server connect Hidden Service |
|||
HiddenServiceDir /data/app-samourai-server |
|||
HiddenServicePort 80 $APP_SAMOURAI_SERVER_IP:8081 |
|||
HiddenServiceDir /data/app-$APP_ID-whirlpool |
|||
HiddenServicePort 80 $APP_SAMOURAI_SERVER_WHIRLPOOL_IP:$APP_SAMOURAI_SERVER_WHIRLPOOL_PORT |
@ -1,2 +1,3 @@ |
|||
export APP_SPHINX_RELAY_IP="10.21.21.14" |
|||
export APP_SPHINX_RELAY_PORT="3300" |
|||
export APP_SPHINX_RELAY_PORT="3300" |
|||
export APP_SPHINX_TOR_HS_EXTRA_PORTS="${APP_SPHINX_RELAY_PORT}:${APP_SPHINX_RELAY_IP}:${APP_SPHINX_RELAY_PORT}" |
@ -1,6 +0,0 @@ |
|||
# sphinx-relay Hidden Service |
|||
# We expose 80 for the connection string UI and $APP_SPHINX_RELAY_PORT for the |
|||
# actual server connection |
|||
HiddenServiceDir /data/app-sphinx-relay |
|||
HiddenServicePort 80 $APP_SPHINX_RELAY_IP:$APP_SPHINX_RELAY_PORT |
|||
HiddenServicePort $APP_SPHINX_RELAY_PORT $APP_SPHINX_RELAY_IP:$APP_SPHINX_RELAY_PORT |
@ -0,0 +1,26 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# Delay booting Squeaknode until the P2P Tor Hidden Service is ready |
|||
|
|||
HIDDEN_SERVICE_FILE="${TOR_DATA_DIR}/app-${APP_ID}-p2p/hostname" |
|||
|
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
exit |
|||
fi |
|||
|
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach web |
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach tor |
|||
|
|||
echo "App: ${APP_ID} - Generating Tor Hidden Service..." |
|||
|
|||
for attempt in $(seq 1 100); do |
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file created successfully!" |
|||
break |
|||
fi |
|||
sleep 0.1 |
|||
done |
|||
|
|||
if [[ ! -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file wasn't created" |
|||
fi |
@ -1,8 +1,4 @@ |
|||
# squeaknode p2p Hidden Service |
|||
HiddenServiceDir /data/app-squeaknode-p2p |
|||
HiddenServiceDir /data/app-$APP_ID-p2p |
|||
HiddenServicePort $APP_SQUEAKNODE_P2P_PORT $APP_SQUEAKNODE_IP:$APP_SQUEAKNODE_P2P_PORT |
|||
HiddenServicePort $APP_SQUEAKNODE_P2P_TESTNET_PORT $APP_SQUEAKNODE_IP:$APP_SQUEAKNODE_P2P_TESTNET_PORT |
|||
|
|||
# squeaknode Hidden Service |
|||
HiddenServiceDir /data/app-squeaknode |
|||
HiddenServicePort 80 $APP_SQUEAKNODE_IP:$APP_SQUEAKNODE_PORT |
|||
HiddenServicePort $APP_SQUEAKNODE_P2P_TESTNET_PORT $APP_SQUEAKNODE_IP:$APP_SQUEAKNODE_P2P_TESTNET_PORT |
@ -0,0 +1,26 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# Delay booting Suredbits Wallet until the P2P Tor Hidden Service is ready |
|||
|
|||
HIDDEN_SERVICE_FILE="${TOR_DATA_DIR}/app-${APP_ID}-p2p/hostname" |
|||
|
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
exit |
|||
fi |
|||
|
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach walletserver |
|||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" up --detach tor |
|||
|
|||
echo "App: ${APP_ID} - Generating Tor Hidden Service..." |
|||
|
|||
for attempt in $(seq 1 100); do |
|||
if [[ -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file created successfully!" |
|||
break |
|||
fi |
|||
sleep 0.1 |
|||
done |
|||
|
|||
if [[ ! -f "${HIDDEN_SERVICE_FILE}" ]]; then |
|||
echo "App: ${APP_ID} - Hidden service file wasn't created" |
|||
fi |
@ -1,7 +1,3 @@ |
|||
# suredbits-wallet p2p Hidden Service |
|||
HiddenServiceDir /data/app-suredbits-wallet-p2p |
|||
HiddenServicePort $APP_SUREDBITS_WALLET_P2P_PORT $APP_SUREDBITS_WALLET_SERVER_IP:$APP_SUREDBITS_WALLET_P2P_PORT |
|||
|
|||
# suredbits-wallet Hidden Service |
|||
HiddenServiceDir /data/app-suredbits-wallet |
|||
HiddenServicePort 80 $APP_SUREDBITS_WALLET_IP:3002 |
|||
HiddenServiceDir /data/app-$APP_ID-p2p |
|||
HiddenServicePort $APP_SUREDBITS_WALLET_P2P_PORT $APP_SUREDBITS_WALLET_SERVER_IP:$APP_SUREDBITS_WALLET_P2P_PORT |
@ -1,2 +1,3 @@ |
|||
export APP_SYNAPSE_IP="10.21.21.44" |
|||
export APP_SYNAPSE_PORT="8008" |
|||
export APP_SYNAPSE_PORT="8008" |
|||
export APP_SYNAPSE_TOR_HS_EXTRA_PORTS="${APP_SYNAPSE_PORT}:${APP_SYNAPSE_IP}:${APP_SYNAPSE_PORT}" |
@ -1,4 +0,0 @@ |
|||
# synapse Hidden Service |
|||
HiddenServiceDir /data/app-synapse |
|||
HiddenServicePort 80 $APP_SYNAPSE_IP:$APP_SYNAPSE_PORT |
|||
HiddenServicePort $APP_SYNAPSE_PORT $APP_SYNAPSE_IP:$APP_SYNAPSE_PORT |
Loading…
Reference in new issue