Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active December 2, 2024 07:54
Show Gist options
  • Select an option

  • Save wilmoore/2f57d06de99f08891a6c0abfb6f0da7c to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/2f57d06de99f08891a6c0abfb6f0da7c to your computer and use it in GitHub Desktop.
Software Engineering :: Web :: Development :: HTTP :: Server :: Caddy :: Configuration :: Caddyfile :: Example :: Enable DNS challenge for a domain managed on Cloudflare

Software Engineering :: Web :: Development :: HTTP :: Server :: Caddy :: Configuration :: Caddyfile :: Example :: Enable DNS challenge for a domain managed on Cloudflare

⪼ Made with 💜 by Polyglot.

related

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}
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment