Improvement of the certificates resolvers logs
This commit is contained in:
parent
a4e8d3cb36
commit
87044c54f4
1 changed files with 5 additions and 1 deletions
|
@ -267,14 +267,18 @@ func initACMEProvider(c *static.Configuration, providerAggregator *aggregator.Pr
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := providerAggregator.AddProvider(p); err != nil {
|
if err := providerAggregator.AddProvider(p); err != nil {
|
||||||
log.WithoutContext().Errorf("Unable to add ACME provider to the providers list: %v", err)
|
log.WithoutContext().Errorf("The ACME resolver %q is skipped from the resolvers list because: %v", name, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
p.SetTLSManager(tlsManager)
|
p.SetTLSManager(tlsManager)
|
||||||
|
|
||||||
if p.TLSChallenge != nil {
|
if p.TLSChallenge != nil {
|
||||||
tlsManager.TLSAlpnGetter = p.GetTLSALPNCertificate
|
tlsManager.TLSAlpnGetter = p.GetTLSALPNCertificate
|
||||||
}
|
}
|
||||||
|
|
||||||
p.SetConfigListenerChan(make(chan dynamic.Configuration))
|
p.SetConfigListenerChan(make(chan dynamic.Configuration))
|
||||||
|
|
||||||
resolvers = append(resolvers, p)
|
resolvers = append(resolvers, p)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue