From bdac1d5bc91912679049c6cd6e03670eeff0b213 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 21 Jun 2023 20:45:46 +0200 Subject: [PATCH] update configl lib --- consul/discovery.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 2dc5984..35c174e 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -6,6 +6,7 @@ import ( "strconv" "time" + "git.pbiernat.dev/egommerce/go-api-pkg/config" consul "github.com/hashicorp/consul/api" ) @@ -153,7 +154,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 + ".plugin.auth.handlerURL="", + "traefik.http.middlewares.auth_" + s.Name + ".plugin.auth.handlerURL=" + config.GetEnv("AUTH_HANDLER_URL"), // "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",