Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(template): added cloudflared #1104

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

nktnet1
Copy link
Contributor

@nktnet1 nktnet1 commented Jan 13, 2025

Cloudflared is a lightweight daemon that securely connects local services to the internet through Cloudflare Tunnel.

Note that the logo I'm using was extracted from the page

https://one.dash.cloudflare.com/<YOUR_ID>/networks/tunnels/new

screenshot-20250113-200456

although we can always use Cloudflare's official logo instead, if that's more easily understood:


cloudflared

I've tested this template on my Homelab.

@nktnet1 nktnet1 requested a review from Siumauricio as a code owner January 13, 2025 09:07
@vishalkadam47
Copy link
Contributor

vishalkadam47 commented Jan 13, 2025

Not sure how but would it be possible to add this feature alongside traefik.me
https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/

This is what I was looking for 🙂
#966

@nktnet1
Copy link
Contributor Author

nktnet1 commented Jan 13, 2025

I didn't need to configure anything fancy with Traefik - just create a tunnel and add the public hostname wildcard subdomain:

*.yourdomain.etc

pointing to http://localhost:80 (or wherever traefik is).

After that, you'll need to manually create a CNAME record (same wildcard subdomain) pointing to the tunnel, and cloudflare will then redirect all traffic to traefik.


As a quick tip, to be less error-prone, you could also create a non-wildcard public hostname in the tunnel, e.g.

temporary.yourdomain.etc

which will automatically create a corresponding DNS CNAME record with the tunnel details (if you use wildcards, DNS will cannot be created automatically).

After that, you can simply replace the "temporary" part with *.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants