We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dff0e27 commit f4631d6Copy full SHA for f4631d6
docker-entrypoint.sh
@@ -1,7 +1,17 @@
1
#!/bin/bash
2
3
+# OctoBot user config from env
4
if [[ -n "${OCTOBOT_CONFIG}" ]]; then
5
echo "$OCTOBOT_CONFIG" | tee /octobot/user/config.json > /dev/null
6
fi
7
8
+##### CLOUDFLARED #####
9
+export TUNNEL_LOGFILE=/root/cloudflared.log
10
+export TUNNEL_LOGLEVEL=info
11
+
12
+# start cloudflared if token is provided
13
+if [[ -n "$CLOUDFLARE_TOKEN" ]]; then
14
+ cloudflared tunnel --url http://localhost:5001 --no-autoupdate run --token $CLOUDFLARE_TOKEN &
15
+fi
16
17
./OctoBot
0 commit comments