From 4f3386d548c90acd6f688659b05b1373605d2eba Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 10 Dec 2022 05:18:44 +0100 Subject: [PATCH] upgrade to traefik v3 --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 51b9a3e..ed714aa 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -139,7 +139,7 @@ func (s *Service) healthCheck() (bool, error) { func (s *Service) getTags() []string { tags := []string{ "traefik.enable=true", - "traefik.http.routers." + s.Name + ".rule=Headers(`X-API-SERVICE`, `" + s.Name + "`)", + "traefik.http.routers." + s.Name + ".rule=Header(`X-API-SERVICE`, `" + s.Name + "`)", "traefik.http.routers." + s.Name + ".entryPoints=https", "traefik.http.routers." + s.Name + ".tls=true", "traefik.http.routers." + s.Name + ".service=" + s.Name,