Caddy and Netlify DNS

Has anyone had any luck with getting Netlify DNS working with the Netlify Caddy plugin? I feel like I have a syntax error in my Caddyfile but, there aren’t many examples of this setup out in the wild. Here’s my Caddyfile for examination:

casa.chrisshort.net {
        encode zstd gzip
        respond OK
	tls chris@chrisshort.net {
		dns netlify personal_access_token={env.NETLIFY_API_TOKEN}
	}
	log {
		output file /var/log/caddy/casa.chrisshort.net-access.log
	}
}

The NETLIFY_API_KEY is in the systemd unit file. I had this working with Cloudflare but, can’t get Caddy to auth with Netlify to generate Let’s Encrypt certs for non-Netlify systems. Any help would be greatly appreciated.

Hey @chrisshort

I am unable to find any information about such a plugin. Are you able to provide a link?

Netlify won’t generate certificates for non-Netlify hosted domains

If you use Netlify to host content on an apex domain and other hosts for content on subdomains, Netlify cannot enable HTTPS for the subdomains with externally-hosted content.

See: HTTPS (SSL) | Netlify Docs

Thank you, @coelmay. Off to find another dynamic DNS service of some sort.