From 74ca1138c5b61e8eddffd475f40ce10233aa1554 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 12 Jul 2023 18:18:51 +0200 Subject: [PATCH] redirect swarm.pim.kunis.nl --- docker-stack.yml.template | 2 +- nginx.conf | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-stack.yml.template b/docker-stack.yml.template index 20ac14d..78c7769 100644 --- a/docker-stack.yml.template +++ b/docker-stack.yml.template @@ -26,6 +26,6 @@ services: - traefik.http.routers.redirects.entrypoints=websecure - traefik.http.routers.redirects.service=static - - "traefik.http.routers.redirects.rule=(Host(`pim.kunis.nl`) || 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`) || Host(`traefik.pim.kunis.nl`) || Host(`latex.pim.kunis.nl`) || Host(`pihole.pim.kunis.nl`))" + - "traefik.http.routers.redirects.rule=(Host(`pim.kunis.nl`) || 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`) || Host(`traefik.pim.kunis.nl`) || Host(`latex.pim.kunis.nl`) || Host(`pihole.pim.kunis.nl`) || Host(`swarm.pim.kunis.nl`))" - traefik.http.routers.redirects.tls=true - traefik.http.routers.redirects.tls.certresolver=letsencrypt diff --git a/nginx.conf b/nginx.conf index 7dde114..7211a1e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -66,3 +66,8 @@ server { server_name pihole.pim.kunis.nl; return 301 https://pihole.kun.is$request_uri; } + +server { + server_name swarm.pim.kunis.nl; + return 301 https://swarm.kun.is$request_uri; +}