From 96e08fce4ca19b61fbd82d292a5dd1f921a3cfab Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 17 Jul 2024 16:40:13 +0200 Subject: [PATCH] Try to fix consul middleware provider --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index a76718e..46b3eb2 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -190,7 +190,7 @@ func (s *Service) getTags() []string { // "traefik.http.routers." + s.Name + ".tls=true", "traefik.http.routers." + s.Name + ".service=" + s.Name, // "traefik.http.routers." + s.Name + ".middlewares=auth_" + s.Name + ",stripprefix_" + s.Name, - "traefik.http.routers." + s.Name + ".middlewares=auth_" + s.Name + "@consulcatalog,requestid_" + s.Name + "@consulcatalog,stripprefix_" + s.Name + "@consulcatalog", + "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), "traefik.http.services." + s.Name + ".loadbalancer.passhostheader=false",