Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 14:30 UTC
httpcaddyfile: Skip automate loader if disable_certs is specified (fix #6148)
Matthew Holt committed
Apr 17, 2024 at 12:26 UTC
3efda6fb3a0622cfb591f3ff904c37f171f6fe89
1 file changed
+1
-1
caddyconfig/httpcaddyfile/tlsapp.go
+1
-1
@@ -344,7 +344,7 @@ func (st ServerType) buildTLSApp(
344
internalAP := &caddytls.AutomationPolicy{
345
IssuersRaw: []json.RawMessage{json.RawMessage(`{"module":"internal"}`)},
346
}
347
- if autoHTTPS != "off" {
347
+ if autoHTTPS != "off" && autoHTTPS != "disable_certs" {
348
for h := range httpsHostsSharedWithHostlessKey {
349
al = append(al, h)
350
if !certmagic.SubjectQualifiesForPublicCert(h) {