diff --git a/provider/consul/consul_catalog_config.go b/provider/consul/consul_catalog_config.go index 9bca70dbb..8634dc892 100644 --- a/provider/consul/consul_catalog_config.go +++ b/provider/consul/consul_catalog_config.go @@ -45,6 +45,7 @@ func (p *CatalogProvider) buildConfiguration(catalog []catalogUpdate) *types.Con "getFrontEndEntryPoints": p.getFuncSliceAttribute(label.SuffixFrontendEntryPoints), // TODO [breaking] rename to getEntryPoints when getEntryPoints will be removed "getPriority": p.getFuncIntAttribute(label.SuffixFrontendPriority, 0), "getPassHostHeader": p.getFuncBoolAttribute(label.SuffixFrontendPassHostHeader, true), + "getPassTLSCert": p.getFuncBoolAttribute(label.SuffixFrontendPassTLSCert, label.DefaultPassTLSCert), } var allNodes []*api.ServiceEntry diff --git a/templates/consul_catalog.tmpl b/templates/consul_catalog.tmpl index 4eca85c20..0d70a44cf 100644 --- a/templates/consul_catalog.tmpl +++ b/templates/consul_catalog.tmpl @@ -42,6 +42,7 @@ backend = "backend-{{ $service.ServiceName }}" priority = {{ getPriority $service.Attributes }} passHostHeader = {{ getPassHostHeader $service.Attributes }} + passTLSCert = {{ getPassTLSCert $service.Attributes }} entryPoints = [{{range getFrontEndEntryPoints $service.Attributes }} "{{.}}",