Created
January 5, 2025 19:18
-
-
Save BoredHackerBlog/102ceb4ab226e3ba5cfc151e871e4f6e to your computer and use it in GitHub Desktop.
cloudflare tunnel setup with wildcard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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