From 8768b6a117db701e2a81ae391b3dad65b627ed06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 12 Apr 2024 17:21:25 +0200 Subject: [PATCH] fix docs redirect --- modules/web01/homepage.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/web01/homepage.nix b/modules/web01/homepage.nix index a106346..a352c65 100644 --- a/modules/web01/homepage.nix +++ b/modules/web01/homepage.nix @@ -36,6 +36,9 @@ locations."/".extraConfig = '' add_header Cache-Control "public, max-age=3600"; ''; + locations."^~ /docs".extraConfig = '' + rewrite ^/docs(.*)$ https://docs.clan.lol permanent; + ''; locations."/thaigersprint".return = "307 https://pad.lassul.us/s/clan-thaigersprint"; }; @@ -53,8 +56,6 @@ locations."/".extraConfig = '' add_header Cache-Control "public, max-age=3600"; ''; - locations."/docs".return = "301 https://docs.clan.lol"; - locations."/docs/thevision".return = "301 https://docs.clan.lol"; }; virtualHosts."www.clan.lol" = {