Skip to content

Instantly share code, notes, and snippets.

@christophemarois
Last active April 9, 2024 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophemarois/a1cddf6db5547d27419f6dffeb6b98f9 to your computer and use it in GitHub Desktop.
Save christophemarois/a1cddf6db5547d27419f6dffeb6b98f9 to your computer and use it in GitHub Desktop.
Cloudflare Tunnels

Cloudflare is a better and free ngrok. With a domain that uses it, set it up like this

  1. Setup a tunnel
cloudflared tunnel login
cloudflared tunnel create test
cloudflared tunnel route dns test test.christophemarois.com
  1. Proxy a URL on it
cloudflared tunnel run --url "http://localhost:8080" test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment