[go: up one dir, main page]

Menu

[07e4ba]: / docker / tunnel.sh  Maximize  Restore  History

Download this file

13 lines (9 with data), 344 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#!/bin/bash
source .env
export TUNNEL_LOGFILE=/root/cloudflared.log
export TUNNEL_LOGLEVEL=info
# start cloudflared if token is provided
# https://developers.cloudflare.com/cloudflare-one/tutorials/cli/
if [[ -n "$CLOUDFLARE_TOKEN" ]]; then
cloudflared tunnel --url http://localhost:5001 --no-autoupdate run --token $CLOUDFLARE_TOKEN &
fi