From def22f26f1ca465fbd2a2d3c672645203cd2497b Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 17 Jul 2024 17:02:02 +0200 Subject: [PATCH] Try to fix consul middlewares --- consul/discovery.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index fb9e9b6..420ef94 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -179,8 +179,8 @@ func (s *Service) getTags() []string { tags := []string{ "traefik.enable=true", // "traefik.http.middlewares.auth_" + s.Name + ".forwardauth.trustForwardHeader=true", - "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.authRequestHeaders=Cookie", + // "traefik.http.middlewares.auth_" + s.Name + ".forwardauth.authResponseHeaders=Set-Cookie, Server", "traefik.http.middlewares.auth_" + s.Name + ".plugin.auth.handlerURL=" + config.GetEnv("AUTH_HANDLER_URL", ""), "traefik.http.middlewares.requestid_" + s.Name + ".plugin.requestid.headerName=X-Request-ID", "traefik.http.middlewares.stripprefix_" + s.Name + ".stripprefix.prefixes=" + s.pathPrefix,