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.