Software Engineering :: Web :: Development :: HTTP :: Server :: Caddy :: Configuration :: Caddyfile :: Example :: Enable DNS challenge for a domain managed on Cloudflare
⪼ Made with 💜 by Polyglot.
Enable the DNS challenge for a domain managed on Cloudflare with account credentials in an environment variable. This unlocks wildcard certificate support, which requires DNS validation:
*.example.com {
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
}