Route fix

This commit is contained in:
Piotr Biernat 2022-12-24 17:50:29 +01:00
parent 73447dfa80
commit c052904266

View File

@ -146,12 +146,12 @@ 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=requestid,compress,stripPathPrefix",
"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.requestid.plugin.requestid.headerName=X-Request-ID",
"traefik.http.middlewares.stripPathPrefix.stripprefix.prefixes=" + s.pathPrefix,
"traefik.http.middlewares.stripprefix.stripprefix.prefixes=" + s.pathPrefix,
"traefik.http.middlewares.compress.compress=true",
// "traefik.http.middlewares.cors.headers.accesscontrolallowmethods=*",
// "traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist=*",