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.

source
Sort:hotnewtop