From 03de7082ab1aeafc6d1204ec973881b89f22894b Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 17 Jul 2024 17:15:39 +0200 Subject: [PATCH] Try to fix consul middlewares --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 420ef94..8dfa283 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -193,7 +193,7 @@ func (s *Service) getTags() []string { "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", + "traefik.http.services." + s.Name + ".loadbalancer.passhostheader=true", "traefik.tls.certificates.certfile=/certs/client.cert", "traefik.tls.certificates.keyfile=/certs/client.key", }