Caddy: How to disable automatic TLS certificate management in Caddy 2?

Created on 31 Jan 2020  路  4Comments  路  Source: caddyserver/caddy

I did my Caddyfile as such:

caddy.com:443 {
  tls /etc/certs/caddy.crt /etc/certs/caddy.key
  reverse_proxy /caddy 127.0.0.1:8443 {
    transport http {
      tls
    }
  }
}

This did not disable automatic TLS certificate management it seems, the log reads:

INFO    http    enabling automatic TLS certificate management   {"domains": []}

But it seems that no domain is in the automatic TLS certificate management bucket, but how do I disable it completely in Caddy 2?

question

All 4 comments

Thanks for your question, and I'm thrilled that you're using Caddy! This looks more like a question about how to use Caddy rather than a bug report or feature request. Since this issue tracker is reserved for actionable development items, I'm going to close this, but we have a community forum where more people will be exposed to your question, including people who may be more expert or experienced with the specific question you're facing. I hope you'll ask your question there, and thanks for understanding!

To answer quickly though, you can have fine-grained control over automatic HTTPS with JSON, for now: https://caddyserver.com/docs/json/apps/http/servers/automatic_https/

So there's no way to disable automatic HTTPS if using the Caddyfile format?

Of course there is - see the docs for Automatic HTTPS under Activation.

thanks @mholt. You are the best.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

whs picture whs  路  3Comments

jgsqware picture jgsqware  路  3Comments

SteffenDE picture SteffenDE  路  3Comments

mschneider82 picture mschneider82  路  3Comments

wayneashleyberry picture wayneashleyberry  路  3Comments