Browse Source

Revert "Revert "Add internal Tor daemon to required apps (#218)" (#219)"

This reverts commit dc98effae1.
main
Luke Childs 2 years ago
parent
commit
ca9361b39e
  1. 12
      bitcoin/docker-compose.yml
  2. 26
      bitcoin/hooks/pre-start
  3. 6
      bitcoin/torrc.template
  4. 2
      bitcoin/umbrel-app.yml
  5. 12
      core-lightning/docker-compose.yml
  6. 26
      core-lightning/hooks/pre-start
  7. 6
      core-lightning/torrc.template
  8. 2
      core-lightning/umbrel-app.yml
  9. 12
      electrs/docker-compose.yml
  10. 26
      electrs/hooks/pre-start
  11. 6
      electrs/torrc.template
  12. 2
      electrs/umbrel-app.yml
  13. 10
      elements/docker-compose.yml
  14. 26
      elements/hooks/pre-start
  15. 6
      elements/torrc.template
  16. 2
      elements/umbrel-app.yml
  17. 3
      gitea/exports.sh
  18. 4
      gitea/torrc.template
  19. 2
      gitea/umbrel-app.yml
  20. 2
      jam/docker-compose.yml
  21. 2
      jam/umbrel-app.yml
  22. 3
      kollider/exports.sh
  23. 4
      kollider/torrc.template
  24. 2
      kollider/umbrel-app.yml
  25. 10
      lightning/docker-compose.yml
  26. 26
      lightning/hooks/pre-start
  27. 6
      lightning/torrc.template
  28. 2
      lightning/umbrel-app.yml
  29. 10
      samourai-server/docker-compose.yml
  30. 27
      samourai-server/hooks/pre-start
  31. 10
      samourai-server/torrc.template
  32. 2
      samourai-server/umbrel-app.yml
  33. 3
      sphinx-relay/exports.sh
  34. 6
      sphinx-relay/torrc.template
  35. 2
      sphinx-relay/umbrel-app.yml
  36. 14
      squeaknode/docker-compose.yml
  37. 26
      squeaknode/hooks/pre-start
  38. 8
      squeaknode/torrc.template
  39. 2
      squeaknode/umbrel-app.yml
  40. 10
      suredbits-wallet/docker-compose.yml
  41. 26
      suredbits-wallet/hooks/pre-start
  42. 8
      suredbits-wallet/torrc.template
  43. 2
      suredbits-wallet/umbrel-app.yml
  44. 3
      synapse/exports.sh
  45. 4
      synapse/torrc.template
  46. 2
      synapse/umbrel-app.yml

12
bitcoin/docker-compose.yml

@ -39,4 +39,14 @@ services:
- "${APP_BITCOIN_RPC_PORT}:${APP_BITCOIN_RPC_PORT}"
networks:
default:
ipv4_address: $APP_BITCOIN_NODE_IP
ipv4_address: $APP_BITCOIN_NODE_IP
tor:
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/torrc:/etc/tor/torrc:ro
- ${TOR_DATA_DIR}:/data
environment:
HOME: "/tmp"

26
bitcoin/hooks/pre-start

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

6
bitcoin/torrc.template

@ -4,8 +4,4 @@ HiddenServicePort $APP_BITCOIN_P2P_PORT $APP_BITCOIN_NODE_IP:$APP_BITCOIN_TOR_PO
# Bitcoin Core RPC Hidden Service
HiddenServiceDir /data/app-$APP_ID-rpc
HiddenServicePort $APP_BITCOIN_RPC_PORT $APP_BITCOIN_NODE_IP:$APP_BITCOIN_RPC_PORT
# Bitcoin Core Frontend Hidden Service
HiddenServiceDir /data/app-$APP_ID
HiddenServicePort 80 $APP_PROXY_HOSTNAME:$APP_PROXY_PORT
HiddenServicePort $APP_BITCOIN_RPC_PORT $APP_BITCOIN_NODE_IP:$APP_BITCOIN_RPC_PORT

2
bitcoin/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: bitcoin
category: Finance
name: Bitcoin Node

12
core-lightning/docker-compose.yml

@ -62,4 +62,14 @@ services:
- "${APP_DATA_DIR}/data/lightningd:/data/.lightning"
networks:
default:
ipv4_address: ${APP_CORE_LIGHTNING_DAEMON_IP}
ipv4_address: ${APP_CORE_LIGHTNING_DAEMON_IP}
tor:
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/torrc:/etc/tor/torrc:ro
- ${TOR_DATA_DIR}:/data
environment:
HOME: "/tmp"

26
core-lightning/hooks/pre-start

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

6
core-lightning/torrc.template

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

2
core-lightning/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: core-lightning
category: Finance
name: Core Lightning

12
electrs/docker-compose.yml

@ -41,4 +41,14 @@ services:
- "${APP_ELECTRS_NODE_PORT}:${APP_ELECTRS_NODE_PORT}"
networks:
default:
ipv4_address: $APP_ELECTRS_NODE_IP
ipv4_address: $APP_ELECTRS_NODE_IP
tor:
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/torrc:/etc/tor/torrc:ro
- ${TOR_DATA_DIR}:/data
environment:
HOME: "/tmp"

26
electrs/hooks/pre-start

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

6
electrs/torrc.template

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

2
electrs/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: electrs
category: Finance
name: Electrs

10
elements/docker-compose.yml

@ -59,5 +59,13 @@ services:
networks:
default:
ipv4_address: $APP_ELEMENTS_IP
tor:
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/torrc:/etc/tor/torrc:ro
- ${TOR_DATA_DIR}:/data
environment:
HOME: "/tmp"

26
elements/hooks/pre-start

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

6
elements/torrc.template

@ -4,8 +4,4 @@ HiddenServicePort $APP_ELEMENTS_NODE_RPC_PORT $APP_ELEMENTS_NODE_IP:$APP_ELEMENT
# elements p2p Hidden Service
HiddenServiceDir /data/app-$APP_ID-p2p
HiddenServicePort $APP_ELEMENTS_NODE_P2P_PORT $APP_ELEMENTS_NODE_IP:$APP_ELEMENTS_NODE_P2P_PORT
# elements Hidden Service
HiddenServiceDir /data/app-$APP_ID
HiddenServicePort 80 $APP_PROXY_HOSTNAME:$APP_PROXY_PORT
HiddenServicePort $APP_ELEMENTS_NODE_P2P_PORT $APP_ELEMENTS_NODE_IP:$APP_ELEMENTS_NODE_P2P_PORT

2
elements/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: elements
category: Wallet Servers
name: Elements Core

3
gitea/exports.sh

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

4
gitea/torrc.template

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

2
gitea/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: gitea
category: Development
name: Gitea

2
jam/docker-compose.yml

@ -27,4 +27,4 @@ services:
jm_rpc_wallet_file: jam_default
networks:
default:
ipv4_address: $APP_JAM_IP
ipv4_address: $APP_JAM_IP

2
jam/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: jam
category: Finance
name: Jam

3
kollider/exports.sh

@ -2,4 +2,5 @@ export APP_KOLLIDER_IP="10.21.21.70"
export APP_KOLLIDER_PORT="4243"
export APP_KOLLIDER_WS_IP="10.21.21.71"
export APP_KOLLIDER_WS_PORT="4244"
export APP_KOLLIDER_HH_IP="10.21.21.72"
export APP_KOLLIDER_HH_IP="10.21.21.72"
export APP_KOLLIDER_TOR_HS_EXTRA_PORTS="4244:${APP_KOLLIDER_WS_IP}:8080"

4
kollider/torrc.template

@ -1,4 +0,0 @@
# kollider Hidden Service
HiddenServiceDir /data/app-kollider
HiddenServicePort 80 $APP_KOLLIDER_IP:3000
HiddenServicePort 4244 $APP_KOLLIDER_WS_IP:8080

2
kollider/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: kollider
category: Finance
name: Kollider

10
lightning/docker-compose.yml

@ -54,3 +54,13 @@ services:
networks:
default:
ipv4_address: $APP_LIGHTNING_NODE_IP
tor:
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/torrc:/etc/tor/torrc:ro
- ${TOR_DATA_DIR}:/data
environment:
HOME: "/tmp"

26
lightning/hooks/pre-start

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

6
lightning/torrc.template

@ -4,8 +4,4 @@ HiddenServicePort $APP_LIGHTNING_NODE_REST_PORT $APP_LIGHTNING_NODE_IP:$APP_LIGH
# LND gRPC Hidden Service
HiddenServiceDir /data/app-$APP_ID-grpc
HiddenServicePort $APP_LIGHTNING_NODE_GRPC_PORT $APP_LIGHTNING_NODE_IP:$APP_LIGHTNING_NODE_GRPC_PORT
# LND Frontend Hidden Service
HiddenServiceDir /data/app-$APP_ID
HiddenServicePort 80 $APP_PROXY_HOSTNAME:$APP_PROXY_PORT
HiddenServicePort $APP_LIGHTNING_NODE_GRPC_PORT $APP_LIGHTNING_NODE_IP:$APP_LIGHTNING_NODE_GRPC_PORT

2
lightning/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: lightning
category: Finance
name: Lightning Node

10
samourai-server/docker-compose.yml

@ -144,3 +144,13 @@ services:
networks:
default:
ipv4_address: $APP_SAMOURAI_SERVER_IP
tor:
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/torrc:/etc/tor/torrc:ro
- ${TOR_DATA_DIR}:/data
environment:
HOME: "/tmp"

27
samourai-server/hooks/pre-start

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

10
samourai-server/torrc.template

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

2
samourai-server/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: samourai-server
category: Wallet Servers
name: Samourai Server

3
sphinx-relay/exports.sh

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

6
sphinx-relay/torrc.template

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

2
sphinx-relay/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: sphinx-relay
category: Social
name: Sphinx Relay

14
squeaknode/docker-compose.yml

@ -31,8 +31,8 @@ services:
SQUEAKNODE_LIGHTNING_LND_MACAROON_PATH: "/lnd/data/chain/bitcoin/$APP_BITCOIN_NETWORK/admin.macaroon"
# Tor environment variables
SQUEAKNODE_TOR_PROXY_IP: $TOR_PROXY_IP
SQUEAKNODE_TOR_PROXY_PORT: $TOR_PROXY_PORT
SQUEAKNODE_TOR_PROXY_IP: "${TOR_PROXY_IP}"
SQUEAKNODE_TOR_PROXY_PORT: "${TOR_PROXY_PORT}"
# App specific environment variables
SQUEAKNODE_WEBADMIN_ENABLED: "true"
@ -49,3 +49,13 @@ services:
networks:
default:
ipv4_address: $APP_SQUEAKNODE_IP
tor:
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/torrc:/etc/tor/torrc:ro
- ${TOR_DATA_DIR}:/data
environment:
HOME: "/tmp"

26
squeaknode/hooks/pre-start

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

8
squeaknode/torrc.template

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

2
squeaknode/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: squeaknode
category: Social
name: Squeaknode

10
suredbits-wallet/docker-compose.yml

@ -58,3 +58,13 @@ services:
networks:
default:
ipv4_address: $APP_SUREDBITS_WALLET_SERVER_IP
tor:
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/torrc:/etc/tor/torrc:ro
- ${TOR_DATA_DIR}:/data
environment:
HOME: "/tmp"

26
suredbits-wallet/hooks/pre-start

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

8
suredbits-wallet/torrc.template

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

2
suredbits-wallet/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: suredbits-wallet
category: Finance
name: Suredbits Wallet

3
synapse/exports.sh

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

4
synapse/torrc.template

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

2
synapse/umbrel-app.yml

@ -1,4 +1,4 @@
manifestVersion: 1
manifestVersion: 1.1
id: synapse
category: Social
name: Synapse

Loading…
Cancel
Save