Fix custom headers template
This commit is contained in:
parent
8f982ff1f2
commit
e3d1201b46
5 changed files with 213 additions and 205 deletions
|
@ -500,15 +500,15 @@ func (s *Server) postLoadConfiguration() {
|
|||
|
||||
// check if one of the frontend entrypoints is configured with TLS
|
||||
// and is configured with ACME
|
||||
ACMEEnabled := false
|
||||
acmeEnabled := false
|
||||
for _, entryPoint := range frontend.EntryPoints {
|
||||
if s.globalConfiguration.ACME.EntryPoint == entryPoint && s.globalConfiguration.EntryPoints[entryPoint].TLS != nil {
|
||||
ACMEEnabled = true
|
||||
acmeEnabled = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if ACMEEnabled {
|
||||
if acmeEnabled {
|
||||
for _, route := range frontend.Routes {
|
||||
rules := Rules{}
|
||||
domains, err := rules.ParseDomains(route.Rule)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue