Skip to content

Commit 3efda6f

Browse files
committed
httpcaddyfile: Skip automate loader if disable_certs is specified (fix #6148)
1 parent 9cd472c commit 3efda6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caddyconfig/httpcaddyfile/tlsapp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ func (st ServerType) buildTLSApp(
344344
internalAP := &caddytls.AutomationPolicy{
345345
IssuersRaw: []json.RawMessage{json.RawMessage(`{"module":"internal"}`)},
346346
}
347-
if autoHTTPS != "off" {
347+
if autoHTTPS != "off" && autoHTTPS != "disable_certs" {
348348
for h := range httpsHostsSharedWithHostlessKey {
349349
al = append(al, h)
350350
if !certmagic.SubjectQualifiesForPublicCert(h) {

0 commit comments

Comments
 (0)