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", }