From 3e985fd3cbbcbe07e8e8a2468b232c52ea165975 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Fri, 30 Jun 2023 16:31:04 +0200 Subject: [PATCH] add more redirections --- docker-stack.yml.template | 2 +- nginx.conf | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/docker-stack.yml.template b/docker-stack.yml.template index f605aa5..2d731b2 100644 --- a/docker-stack.yml.template +++ b/docker-stack.yml.template @@ -18,6 +18,6 @@ services: - traefik.enable=true - traefik.http.routers.static.entrypoints=websecure - 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`))" + - "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`))" - traefik.http.routers.static.tls=true - traefik.http.routers.static.tls.certresolver=letsencrypt diff --git a/nginx.conf b/nginx.conf index 2a0de85..bfc5976 100644 --- a/nginx.conf +++ b/nginx.conf @@ -26,3 +26,23 @@ server { server_name concourse.pim.kunis.nl; return 301 https://ci.kun.is$request_uri; } + +server { + server_name rss.pim.kunis.nl; + return 301 https://rss.kun.is$request_uri; +} + +server { + server_name md.pim.kunis.nl; + return 301 https://md.kun.is$request_uri; +} + +server { + server_name cloud.pim.kunis.nl; + return 301 https://cloud.kun.is$request_uri; +} + +server { + server_name dav.pim.kunis.nl; + return 301 https://dav.kun.is$request_uri; +}