From 4f183541e68c4da8ae4164dab2702f5fd742615a Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 3 Dec 2022 03:12:07 +0100 Subject: [PATCH] route rule fix --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 0c01aa9..cefc50c 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -132,7 +132,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.Domain + "`)", + "traefik.http.routers." + s.Name + ".rule=Headers(`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,