From 8e7036831fcac92cb1c937a2afd7ea040afc1f21 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Fri, 7 Jul 2023 12:25:17 +0200 Subject: [PATCH] split router for blog and redirects --- docker-stack.yml.template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docker-stack.yml.template b/docker-stack.yml.template index 7e81aab..1c7baee 100644 --- a/docker-stack.yml.template +++ b/docker-stack.yml.template @@ -16,8 +16,16 @@ services: - "node.labels.public == true" labels: - traefik.enable=true + - traefik.http.routers.static.entrypoints=websecure + - traefik.http.routers.static.service=static - traefik.http.services.static.loadbalancer.server.port=80 - - "traefik.http.routers.static.rule=(Host(`pim.kunis.nl`) || Host(`pim.kun.is`) || Host(`concourse.pim.kunis.nl`) || Host(`rss.pim.kunis.nl`) || Host(`md.pim.kunis.nl`) || Host(`cloud.pim.kunis.nl`) || Host(`dav.pim.kunis.nl`) || Host(`git.pim.kunis.nl`))" + - traefik.http.routers.static.rule=Host(`pim.kunis.nl`) - traefik.http.routers.static.tls=true - traefik.http.routers.static.tls.certresolver=letsencrypt + + - traefik.http.routers.redirects.entrypoints=websecure + - traefik.http.routers.redirects.service=static + - "traefik.http.routers.redirects.rule=(Host(`pim.kun.is`) || Host(`concourse.pim.kunis.nl`) || Host(`rss.pim.kunis.nl`) || Host(`md.pim.kunis.nl`) || Host(`cloud.pim.kunis.nl`) || Host(`dav.pim.kunis.nl`) || Host(`git.pim.kunis.nl`))" + - traefik.http.routers.redirects.tls=true + - traefik.http.routers.redirects.tls.certresolver=letsencrypt