From 36852692360c67e9b74f1cd55625686948d02242 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 14 Jun 2023 15:50:53 +0200 Subject: [PATCH] Fixed traefik custom auth plugin config --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 0c23377..28dd35f 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -153,7 +153,7 @@ func (s *Service) getTags() []string { "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", - "traefik.http.middlewares.auth_" + s.Name + ".auth.handlerURL=http://identity-svc/api/v1/traefik", + "traefik.http.middlewares.auth_" + s.Name + ".plugin.auth.handlerURL=http://identity-svc/api/v1/traefik", // "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",