From 99957861dc1a28cc22ee348ed2d38e9bd3d35f51 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 20 Jul 2024 14:24:38 +0200 Subject: [PATCH] fix ssl support --- consul/discovery.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index e598f3d..2e2b4a9 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -203,9 +203,9 @@ func (s *Service) getTags() []string { // "treafik.http.middlewares.retryif_" + s.Name + ".plugin.retryif.attempts=3", // "treafik.http.middlewares.retryif_" + s.Name + ".plugin.retryif.statusCode=503", "traefik.http.routers." + s.Name + ".rule=PathPrefix(`" + s.pathPrefix + "`)", - // "traefik.http.routers." + s.Name + ".rule=Host(`" + s.domain + "`)", + "traefik.http.routers." + s.Name + ".rule=Host(`" + s.domain + "`)", "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=auth_" + s.Name + ",stripprefix_" + s.Name, "traefik.http.routers." + s.Name + ".middlewares=auth_" + s.Name + ",stripprefix_" + s.Name + ",requestid_" + s.Name + "",