mirror of
https://github.com/caddyserver/caddy.git
synced 2026-11-12 20:03:34 +00:00
httpserver: Don't obtain certs for unmanaged configs (fixes #2387)
This commit is contained in:
1 file changed
+3
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user