Same Caddyfile on dev and prod

Is there a way to use same Caddyfile on dev and production servers?
I have multiple sites (local tests and prods) and try to keep them all in one Caddyfile. Automatic https try to get ssl for prod sites when caddy start on dev server and gives errors.

In the past, discussion regarding this topic has essentially boiled down to “use DNS validation” - see the Caddy docs for same.

One thing to look out for in that case is the LetsEncrypt rate limits, which you might hit if you request certificates for multiple systems or have more than a handful of subdomains.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.