mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-16 15:56:28 +03:00
httpserver: Don't obtain certs for unmanaged configs (fixes #2387)
This commit is contained in:
parent
598de9e6d9
commit
d1171af679
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ func activateHTTPS(cctx caddy.Context) error {
|
|||
|
||||
// place certificates and keys on disk
|
||||
for _, c := range ctx.siteConfigs {
|
||||
if !c.TLS.Managed {
|
||||
continue
|
||||
}
|
||||
if c.TLS.Manager.OnDemand != nil {
|
||||
continue // obtain these certificates on-demand instead
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue