From 127146747650a0f9bb59ec9deeaa2079e9983c5d Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 24 Dec 2022 16:39:21 +0100 Subject: [PATCH] DEBUG change --- consul/discovery.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index c7b2dc3..42c115c 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -144,12 +144,13 @@ 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=compress,requestid", + "traefik.http.routers." + s.Name + ".middlewares=requestid,compress,stripPrefix", "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.compress.compress=true", "traefik.http.middlewares.requestid.plugin.requestid.headerName=X-Request-ID", + "traefik.http.middlewares.stripPrefix.stripprefix.prefixes=/foobar" + "traefik.http.middlewares.compress.compress=true", // "traefik.http.middlewares.cors.headers.accesscontrolallowmethods=*", // "traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist=*", // "traefik.http.middlewares.cors.headers.accessControlExposeHeaders=true",