From 6500dd04b63def15e3beede935cbac806790b4c4 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Tue, 22 Aug 2023 16:29:09 +0200 Subject: [PATCH] wiki: add redirects --- modules/wiki.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/wiki.nix b/modules/wiki.nix index 910c21c..306c817 100644 --- a/modules/wiki.nix +++ b/modules/wiki.nix @@ -102,6 +102,8 @@ in proxyPass = "http://127.0.0.1:${toString listenPort}"; proxyWebsockets = true; }; + locations."~ ^/ese/([^\\n|\\r]*)$".return = "301 https://wiki.ese.ifsr.de/$1"; + locations."~ ^/fsr/([^\\n|\\r]*)$".return = "301 https://wiki.ifsr.de/$1"; }; }; };