From d54df8558922f38682b65ce0c2be018ea054b186 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 5 Jul 2023 23:46:46 +0200 Subject: [PATCH] redirect git domain --- 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 9c47966..7e81aab 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`) || Host(`rss.pim.kunis.nl`) || Host(`md.pim.kunis.nl`) || Host(`cloud.pim.kunis.nl`) || Host(`dav.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`) || Host(`git.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 610b4dc..f26c10e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -46,3 +46,8 @@ server { server_name dav.pim.kunis.nl; return 301 https://dav.kun.is$request_uri; } + +server { + server_name git.pim.kunis.nl; + return 301 https://git.kun.is$request_uri; +}