Skip to content

Commit 7cc85e5

Browse files
committed
add cloudflared tunnel
1 parent f343179 commit 7cc85e5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM v2fly/v2fly-core:latest
22

3+
RUN wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O /root/cloudflared
4+
RUN chmod +x /root/cloudflared
35
ADD startup.sh /startup.sh
46
RUN chmod +x /startup.sh
57

startup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ cat << EOF > /etc/v2ray/config.json
4949
EOF
5050

5151
# Run V2Ray
52-
/usr/bin/v2ray -config /etc/v2ray/config.json
52+
/usr/bin/v2ray -config /etc/v2ray/config.json && /root/cloudflared tunnel --no-autoupdate run --token $tunnel_token

0 commit comments

Comments
 (0)