httpserver: Don't obtain certs for unmanaged configs (fixes #2387)

This commit is contained in:
Matthew Holt 2018-12-11 19:37:08 -07:00
parent 598de9e6d9
commit d1171af679
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -38,6 +38,9 @@ func activateHTTPS(cctx caddy.Context) error {
// place certificates and keys on disk // place certificates and keys on disk
for _, c := range ctx.siteConfigs { for _, c := range ctx.siteConfigs {
if !c.TLS.Managed {
continue
}
if c.TLS.Manager.OnDemand != nil { if c.TLS.Manager.OnDemand != nil {
continue // obtain these certificates on-demand instead continue // obtain these certificates on-demand instead
} }