Add ACME certificates only on ACME EntryPoint

This commit is contained in:
NicoMen 2018-04-06 08:44:03 +02:00 committed by Traefiker Bot
parent a19b93c966
commit e74e7cf734

View file

@ -424,7 +424,7 @@ func (p *Provider) refreshCertificates() {
for _, cert := range p.certificates { for _, cert := range p.certificates {
certificate := &traefikTLS.Certificate{CertFile: traefikTLS.FileOrContent(cert.Certificate), KeyFile: traefikTLS.FileOrContent(cert.Key)} certificate := &traefikTLS.Certificate{CertFile: traefikTLS.FileOrContent(cert.Certificate), KeyFile: traefikTLS.FileOrContent(cert.Key)}
config.Configuration.TLS = append(config.Configuration.TLS, &traefikTLS.Configuration{Certificate: certificate}) config.Configuration.TLS = append(config.Configuration.TLS, &traefikTLS.Configuration{Certificate: certificate, EntryPoints: []string{p.EntryPoint}})
} }
p.configurationChan <- config p.configurationChan <- config
} }