httpcaddyfile: Skip automate loader if disable_certs is specified (fix #6148)

This commit is contained in:
Matthew Holt 2024-04-17 12:26:01 -06:00
parent 9cd472c031
commit 3efda6fb3a

View file

@ -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) {