diff options
author | Matthew Holt <[email protected]> | 2024-04-17 12:26:01 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2024-04-17 12:26:03 -0600 |
commit | 3efda6fb3a0622cfb591f3ff904c37f171f6fe89 (patch) | |
tree | d1b45fcb0d935c83841c6f3fb37f3b25f356cb55 /caddyconfig/httpcaddyfile | |
parent | 9cd472c0313b01e71d1f142769c3653058d75c86 (diff) | |
download | caddy-3efda6fb3a0622cfb591f3ff904c37f171f6fe89.tar.gz caddy-3efda6fb3a0622cfb591f3ff904c37f171f6fe89.zip |
httpcaddyfile: Skip automate loader if disable_certs is specified (fix #6148)
Diffstat (limited to 'caddyconfig/httpcaddyfile')
-rw-r--r-- | caddyconfig/httpcaddyfile/tlsapp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caddyconfig/httpcaddyfile/tlsapp.go b/caddyconfig/httpcaddyfile/tlsapp.go index e5d1603ed..bf3bed41a 100644 --- a/caddyconfig/httpcaddyfile/tlsapp.go +++ b/caddyconfig/httpcaddyfile/tlsapp.go @@ -344,7 +344,7 @@ func (st ServerType) buildTLSApp( internalAP := &caddytls.AutomationPolicy{ IssuersRaw: []json.RawMessage{json.RawMessage(`{"module":"internal"}`)}, } - if autoHTTPS != "off" { + if autoHTTPS != "off" && autoHTTPS != "disable_certs" { for h := range httpsHostsSharedWithHostlessKey { al = append(al, h) if !certmagic.SubjectQualifiesForPublicCert(h) { |