From 47339bda36b5c00028d38d04703ab27d73233ab0 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 17 Jul 2024 16:26:31 +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 f2acd24..4ec8724 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 + "@docker,requestid_" + s.Name + "@docker,stripprefix_" + s.Name + "@docker", + "traefik.http.routers." + s.Name + ".middlewares=auth_" + s.Name + "@consulCatalog,requestid_" + s.Name + "@consulCatalog,stripprefix_" + s.Name + "@consulCatalog", "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",