-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b774ce6
commit cec3831
Showing
6 changed files
with
82 additions
and
13 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
workspace | ||
config/ | ||
.env | ||
config/authorized_keya | ||
config/rclone |
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,28 @@ | ||
#!/bin/bash | ||
|
||
service="horde-webui" | ||
port=7860 | ||
|
||
if [[ -z $CF_QUICK_TUNNELS ]]; then | ||
printf "\n** You have not enabled Cloudflare quick tunnels **\n\n" | ||
printf "To enable, you can do the following:\n\n" | ||
printf "1. export CF_QUICK_TUNNELS=true\n" | ||
printf "2. supervisorctl restart %s\n\n" $service | ||
exit 1 | ||
fi | ||
|
||
if [[ -f /var/log/supervisor/quicktunnel-${service}.log ]]; then | ||
grep -b0 -a0 'trycloudflare.com' /var/log/supervisor/quicktunnel-${service}.log | ||
if [[ $? -gt 0 ]]; then | ||
printf "\n** Something may have gone wrong setting up the %s tunnel **\n\n" $service | ||
printf "To set up manually you can run the following command:\n\n" | ||
printf "cloudflared tunnel --url localhost:%s > /var/log/supervisor/quicktunnel-%s.log 2>&1 &\n\n" $port $service | ||
fi | ||
else | ||
printf "** The %s tunnel has not yet started **\n\n" | ||
if [[ -f /run/provisioning_script ]]; then | ||
printf "The container is still being provisioned. Check the logs for progress (logtail.sh)\n\n" | ||
else | ||
printf "Please wait a moment and try again.\n\n" | ||
fi | ||
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