From e906efdb6c2c1072242d9e8137fd73894f53db96 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 24 Feb 2023 01:44:01 +0100 Subject: [PATCH] fix traefik auth plugin base config --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 2f17eee..8ce9822 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -155,7 +155,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.forwardauth.address=http://identity-svc/api/v1/login", + "traefik.http.middlewares.auth.forwardauth.address=http://identity-svc/api/v1/traefik", "traefik.http.middlewares.requestid.plugin.requestid.headerName=X-Request-ID", "traefik.http.middlewares.stripprefix_" + s.Name + ".stripprefix.prefixes=" + s.pathPrefix, "traefik.tls.certificates.certfile=/certs/client.cert",