forked from getumbrel/umbrel-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Add internal Tor daemon to required apps (getumbrel#218…
…)" (getumbrel#219)" This reverts commit dc98eff.
- Loading branch information
1 parent
dc98eff
commit ca9361b
Showing
46 changed files
with
327 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
manifestVersion: 1 | ||
manifestVersion: 1.1 | ||
id: bitcoin | ||
category: Finance | ||
name: Bitcoin Node | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
manifestVersion: 1 | ||
manifestVersion: 1.1 | ||
id: core-lightning | ||
category: Finance | ||
name: Core Lightning | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
manifestVersion: 1 | ||
manifestVersion: 1.1 | ||
id: electrs | ||
category: Finance | ||
name: Electrs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
manifestVersion: 1 | ||
manifestVersion: 1.1 | ||
id: elements | ||
category: Wallet Servers | ||
name: Elements Core | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
manifestVersion: 1 | ||
manifestVersion: 1.1 | ||
id: gitea | ||
category: Development | ||
name: Gitea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
manifestVersion: 1 | ||
manifestVersion: 1.1 | ||
id: jam | ||
category: Finance | ||
name: Jam | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
manifestVersion: 1 | ||
manifestVersion: 1.1 | ||
id: kollider | ||
category: Finance | ||
name: Kollider | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
manifestVersion: 1 | ||
manifestVersion: 1.1 | ||
id: lightning | ||
category: Finance | ||
name: Lightning Node | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.