• 0 Posts
  • 5 Comments
Joined 2 years ago
cake
Cake day: June 9th, 2023

help-circle

  • 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.