From 9dc85a1963f42b0523786fe02b87f9abb7e2b9cf Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Tue, 16 Jul 2024 21:34:58 +0200 Subject: [PATCH] revert consul tags --- consul/discovery.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index 82b672d..589bbc0 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -178,8 +178,8 @@ func (s *Service) healthCheck() (bool, error) { func (s *Service) getTags() []string { tags := []string{ "traefik.enable=true", - // "traefik.http.routers." + s.Name + ".rule=PathPrefix(`" + s.pathPrefix + "`)", - "traefik.http.routers." + s.Name + ".rule=Host(`" + s.domain + "`)", + "traefik.http.routers." + s.Name + ".rule=PathPrefix(`" + s.pathPrefix + "`)", + // "traefik.http.routers." + s.Name + ".rule=Host(`" + s.domain + "`)", "traefik.http.routers." + s.Name + ".entryPoints=https", // "traefik.http.routers." + s.Name + ".tls=true", "traefik.http.routers." + s.Name + ".service=" + s.Name,