Comment on Need help with Caddy Reverse Proxy
anonion@lemmy.anonion.social 3 days ago
This is really all you need to get started. Assuming you have built caddy with the cloudflare dns module
{ acme_dns cloudflare cloudflare_api_key email your@email.com } pihole.yourdomain.com { reverse_proxy http://192.168.0.4/ }
Your cloudflare API key needs this: “API Token: Zone.Zone:Read and Zone.DNS:Edit permissions for the domain(s) you’re managing with Caddy”
One thing to mention, you probably want to configure the DNS settings on the caddy LXC to be something like 1.1.1.1 or 8.8.8.8 instead of pihole.
cwisch@midwest.social 3 days ago
Hmm, I confirmed cloudflare module with “caddy list-modules” and see:
But when I do a reload I get “Error: adapting config using caddyfile: Caddyfile:12: unrecognized global option: acme_dms”
anonion@lemmy.anonion.social 3 days ago
You have a typo. Its “acme_dns” not “dms”
cwisch@midwest.social 3 days ago
Thank you, getting old sucks. Didn’t even see that.