From 33759c87db415b3df8598fbb04781e6f521cec03 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 20 Jul 2024 15:56:59 +0200 Subject: [PATCH] debug fix --- consul/discovery.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index 359d6ca..b9432e5 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -159,7 +159,7 @@ func (s *Service) healthCheck() (bool, error) { alive := func() bool { client := &http.Client{} healthUrl := fmt.Sprintf("%s%s?name=%s", s.GetFullAddr(), "health", s.Name) - fmt.Printf("HealthCheck URL: %s%s?name=%s", s.GetFullAddr(), "health", s.Name) + // fmt.Printf("HealthCheck URL: %s%s?name=%s", s.GetFullAddr(), "health", s.Name) req, err := http.NewRequest(http.MethodGet, healthUrl, nil) if err != nil { return false @@ -216,7 +216,7 @@ func (s *Service) getTags() []string { "traefik.http.services." + s.Name + ".loadbalancer.healthcheck.interval=1s", "traefik.http.services." + s.Name + ".loadbalancer.healthcheck.timeout=1s", "traefik.http.services." + s.Name + ".loadbalancer.healthcheck.path=/health", - "traefik.tls.certificates.certfile=certs/client.cert", + "traefik.tls.certificates.certfile=certs/client.crt", "traefik.tls.certificates.keyfile=certs/client.key", }