https://github.com/caddy-dns/cloudflare https://caddyserver.com/docs/running Get your Cloudflare api token. sudo systemctl edit caddy [Service] Environment="CF_API_TOKEN=super-secret-cloudflare-tokenvalue" sudo systemctl restart caddy In the caddyfile: tls { dns cloudflare {env.CF_API_TOKEN} }