From faace02cb4aef2db0ca433a38dc189a83d322a68 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sun, 4 Dec 2022 06:05:27 +0100 Subject: [PATCH] added tls support... --- consul/discovery.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/consul/discovery.go b/consul/discovery.go index cefc50c..92a0f61 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -141,6 +141,8 @@ func (s *Service) getTags() []string { "traefik.http.services." + s.Name + ".loadbalancer.server.port=" + strconv.Itoa(s.Port), "traefik.http.middlewares.compress.compress=true", "traefik.http.middlewares.requestid.plugin.requestid.headerName=X-Request-ID", + "traefik.tls.certificates.certfile=/certs/client.cert", + "traefik.tls.certificates.keyfile=/certs/client.key", // "traefik.http.services." + s.Name + ".loadbalancer.passhostheader=false", // "traefik.http.services." + s.Name + ".loadbalancer.servers." + fullName + "=" + bFullAddr, // "traefik.http.services." + s.Name + ".loadbalancer.servers." + fullName + ".url=" + bFullAddr,