From 847bd0e41e0bfd13ee09a0ca69b1dcac59dd2858 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 24 Dec 2022 15:09:01 +0100 Subject: [PATCH] router change --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 48f6790..7571a18 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -146,6 +146,7 @@ func (s *Service) getTags() []string { "traefik.http.routers." + s.Name + ".middlewares=compress,requestid", "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.cors.headers.accesscontrolallowmethods=*", @@ -155,7 +156,6 @@ func (s *Service) getTags() []string { // "traefik.http.middlewares.cors.headers.addvaryheader=true", "traefik.tls.certificates.certfile=/certs/client.cert", "traefik.tls.certificates.keyfile=/certs/client.key", - // "traefik.http.services." + s.Name + ".loadbalancer.passhostheader=false", // "traefik.http.services." + s.Name + ".loadbalancer.servers." + fullName + "=" + bFullAddr, // "traefik.http.services." + s.Name + ".loadbalancer.servers." + fullName + ".url=" + bFullAddr, // "traefik.http.services." + s.Name + ".loadbalancer.healthcheck.path=/health",