Fix custom headers template

This commit is contained in:
Ludovic Fernandez 2018-01-02 09:42:03 +01:00 committed by Traefiker
parent 8f982ff1f2
commit e3d1201b46
5 changed files with 213 additions and 205 deletions

View file

@ -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)