Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BoredHackerBlog/102ceb4ab226e3ba5cfc151e871e4f6e to your computer and use it in GitHub Desktop.
Save BoredHackerBlog/102ceb4ab226e3ba5cfc151e871e4f6e to your computer and use it in GitHub Desktop.
cloudflare tunnel setup with wildcard
Login:
cloudflared tunnel login
Create tunnel:
cloudflared tunnel create infra
Create routing/dns record:
cloudflared tunnel route dns infra YOURDOMAIN.COM
On cloudflare website, in dns record, replace 'infra' with '*' and save.
Run cloudflare tunnel or use a config file & service:
cloudflared tunnel run --url localhost:80 infra
Point it to caddy or nginx proxy manager. configure either to handle subdomains and do routing/proxying.
exmample: portainer.YOURDOMAIN.com localhost:9000, uptime.YOURDOMAIN.com localhost:3001, etc...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment