From 255c67ff92545f60e30aca1d7bf9c9e37a38af0e Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Tue, 16 Jul 2024 21:39:53 +0200 Subject: [PATCH] fix consul tags --- consul/discovery.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index 589bbc0..6afe562 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -183,7 +183,8 @@ func (s *Service) getTags() []string { "traefik.http.routers." + s.Name + ".entryPoints=https", // "traefik.http.routers." + s.Name + ".tls=true", "traefik.http.routers." + s.Name + ".service=" + s.Name, - "traefik.http.routers." + s.Name + ".middlewares=auth_" + s.Name + ",requestid_" + s.Name + ",stripprefix_" + s.Name, + "traefik.http.routers." + s.Name + ".middlewares=stripprefix_" + s.Name, + // "traefik.http.routers." + s.Name + ".middlewares=auth_" + s.Name + ",requestid_" + s.Name + ",stripprefix_" + s.Name, "traefik.http.services." + s.Name + ".loadbalancer.server.scheme=http", "traefik.http.services." + s.Name + ".loadbalancer.server.port=" + strconv.Itoa(s.port), "traefik.http.services." + s.Name + ".loadbalancer.passhostheader=false", @@ -191,7 +192,7 @@ func (s *Service) getTags() []string { // "traefik.http.middlewares.auth_" + s.Name + ".forwardauth.authRequestHeaders=Cookie", // "traefik.http.middlewares.auth_" + s.Name + ".forwardauth.authResponseHeaders=Set-Cookie, Server", // "traefik.http.middlewares.auth_" + s.Name + ".forwardauth.trustForwardHeader=true", - "traefik.http.middlewares.requestid_" + s.Name + ".plugin.requestid.headerName=X-Request-ID", + // "traefik.http.middlewares.requestid_" + s.Name + ".plugin.requestid.headerName=X-Request-ID", "traefik.http.middlewares.stripprefix_" + s.Name + ".stripprefix.prefixes=" + s.pathPrefix, "traefik.tls.certificates.certfile=/certs/client.cert", "traefik.tls.certificates.keyfile=/certs/client.key",