Skip to content

Commit f4631d6

Browse files
committed
[Docker] Add cloudflared to entrypoint
1 parent dff0e27 commit f4631d6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker-entrypoint.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
#!/bin/bash
22

3+
# OctoBot user config from env
34
if [[ -n "${OCTOBOT_CONFIG}" ]]; then
45
echo "$OCTOBOT_CONFIG" | tee /octobot/user/config.json > /dev/null
56
fi
67

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+
717
./OctoBot

0 commit comments

Comments
 (0)