Skip to content

Commit

Permalink
httpcaddyfile: Skip automate loader if disable_certs is specified (fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Apr 17, 2024
1 parent 9cd472c commit 3efda6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caddyconfig/httpcaddyfile/tlsapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3efda6f

Please sign in to comment.