tiredofit / docker-traefik-cloudflare-companion

Automatically Create CNAME records for containers served by Traefik
MIT License
404 stars 65 forks source link

Create A-records instead #55

Open Jouse82 opened 3 years ago

Jouse82 commented 3 years ago

Instead of CNAMEs, I'd like to create A-Records, as with Cloudflare free tier, CNAMEs get flattened to reveal destination IP, bypassing the proxy function.

calvinthefreak commented 2 years ago

You need to enable the Proxy on the A record like this:

Your Traefik: grafik IPv4 is "A" IPv6 is "AAAA", I myself use IPv6 because it costs less at my Provider.

And this is the CNAME where it Points at: grafik app.com is in this case your domain here. Please note, that all the "Cloudflared" thingies are on (Orange)

albreis commented 2 years ago

Instead of CNAMEs, I'd like to create A-Records, as with Cloudflare free tier, CNAMEs get flattened to reveal destination IP, bypassing the proxy function.

I've forked and implementing more controls using labels

https://github.com/albreis/docker-traefik-cloudflare-companion