From 0aa6fc2aa3bccca5ea6c3b9254e8a72485b7d33d Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 17 Jul 2024 15:22:30 +0200 Subject: [PATCH] Fixed consul registered tags --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 6afe562..3d03914 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -183,7 +183,7 @@ 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=stripprefix_" + s.Name, + "traefik.http.routers." + s.Name + ".middlewares=stripprefix_" + s.Name + ",auth_" + 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),