tiredofit / docker-traefik-cloudflare-companion

Automatically Create CNAME records for containers served by Traefik

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create A-records instead

Jouse82 opened this issue · comments

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.

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)

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