Added healthcheck params in consul tags

This commit is contained in:
Piotr Biernat 2024-07-17 18:27:21 +02:00
parent c644f42ea9
commit f0b5e56e43

View File

@ -194,6 +194,8 @@ func (s *Service) getTags() []string {
"traefik.http.services." + s.Name + ".loadbalancer.server.scheme=http",
"traefik.http.services." + s.Name + ".loadbalancer.server.port=" + strconv.Itoa(s.port),
"traefik.http.services." + s.Name + ".loadbalancer.passhostheader=true",
"traefik.http.services." + s.Name + ".loadbalancer.healthcheck.interval=1",
"traefik.http.services." + s.Name + ".loadbalancer.healthcheck.timeout=1",
"traefik.tls.certificates.certfile=/certs/client.cert",
"traefik.tls.certificates.keyfile=/certs/client.key",
}