forked from SW/traefik
Fix custom headers template
This commit is contained in:
committed by
Traefiker
parent
8f982ff1f2
commit
e3d1201b46
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user