From 0fcbe0d0ad00229b1ec24dafd911ea120be07762 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Tue, 6 Dec 2022 02:14:03 +0100 Subject: [PATCH] disable tls --- consul/discovery.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index 928cd56..bd166e5 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -140,15 +140,15 @@ func (s *Service) getTags() []string { "traefik.enable=true", "traefik.http.routers." + s.Name + ".rule=Headers(`X-API-SERVICE`, `" + s.Name + "`)", "traefik.http.routers." + s.Name + ".entryPoints=https", - "traefik.http.routers." + s.Name + ".tls=true", + // "traefik.http.routers." + s.Name + ".tls=true", "traefik.http.routers." + s.Name + ".service=" + s.Name, "traefik.http.routers." + s.Name + ".middlewares=compress,requestid", "traefik.http.services." + s.Name + ".loadbalancer.server.scheme=http", "traefik.http.services." + s.Name + ".loadbalancer.server.port=" + strconv.Itoa(s.port), "traefik.http.middlewares.compress.compress=true", "traefik.http.middlewares.requestid.plugin.requestid.headerName=X-Request-ID", - "traefik.tls.certificates.certfile=/certs/client.cert", - "traefik.tls.certificates.keyfile=/certs/client.key", + // "traefik.tls.certificates.certfile=/certs/client.cert", + // "traefik.tls.certificates.keyfile=/certs/client.key", // "traefik.http.services." + s.Name + ".loadbalancer.passhostheader=false", // "traefik.http.services." + s.Name + ".loadbalancer.servers." + fullName + "=" + bFullAddr, // "traefik.http.services." + s.Name + ".loadbalancer.servers." + fullName + ".url=" + bFullAddr,