Try to fix consul middleware provider

This commit is contained in:
Piotr Biernat 2024-07-17 16:29:38 +02:00
parent 47339bda36
commit 3285ee65da

View File

@ -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",