diff --git a/consul/discovery.go b/consul/discovery.go index 7571a18..c7b2dc3 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -139,7 +139,8 @@ func (s *Service) healthCheck() (bool, error) { func (s *Service) getTags() []string { tags := []string{ "traefik.enable=true", - "traefik.http.routers." + s.Name + ".rule=Header(`X-API-SERVICE`, `" + s.Name + "`)", + // "traefik.http.routers." + s.Name + ".rule=Header(`X-API-SERVICE`, `" + s.Name + "`)", + "traefik.http.routers." + s.Name + ".rule=PathPrefix(`/catalog`)", "traefik.http.routers." + s.Name + ".entryPoints=https", "traefik.http.routers." + s.Name + ".tls=true", "traefik.http.routers." + s.Name + ".service=" + s.Name,