We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5826ec + 7e0890f commit f8af2eeCopy full SHA for f8af2ee
caddynet/netserver/tls.go
@@ -28,12 +28,14 @@ func activateTLS(cctx caddy.Context) error {
28
}
29
30
31
- // 3. Calls ObtainCert() for each config (this method only obtains certificates if the config qualifies and has its Managed field set to true).
+ // 3. Calls ObtainCert() for each managed config.
32
// place certificates and keys on disk
33
- for _, c := range ctx.configs {
34
- err := c.TLS.Manager.ObtainCert(c.TLS.Hostname, operatorPresent)
35
- if err != nil {
36
- return err
+ for _, cfg := range ctx.configs {
+ if cfg.TLS.Managed {
+ err := cfg.TLS.Manager.ObtainCert(cfg.TLS.Hostname, operatorPresent)
+ if err != nil {
37
+ return err
38
+ }
39
40
41
0 commit comments