Skip to content

Instantly share code, notes, and snippets.

@tingwei628
Last active January 27, 2024 15:25
Show Gist options
  • Save tingwei628/3f215e71c79af460f3a1ee389ad92e2e to your computer and use it in GitHub Desktop.
Save tingwei628/3f215e71c79af460f3a1ee389ad92e2e to your computer and use it in GitHub Desktop.
cloudflare tunnel

install cloudflared

cloudflared.exe service install [token]

stop cloudflared

sc stop cloudflared

start cloudflared

sc start cloudflared

if running in docker

services:
  cloudflared:
    image: cloudflare/cloudflared:latest
    command: tunnel run
    environment:
      - TUNNEL_TOKEN=[token]

Ref: https://medium.com/chouhsiang/%E6%B2%92%E6%9C%89public-ip%E4%B9%9F%E8%83%BD%E6%9E%B6%E7%AB%99-2-cloudflare-tunnel-197a4b88bd78

https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/configure-tunnels/local-management/as-a-service/windows/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment