diff --git a/modules/website.nix b/modules/website.nix index 8124007..8173712 100644 --- a/modules/website.nix +++ b/modules/website.nix @@ -60,6 +60,7 @@ in fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; ''; }; + "~ ^/cmd/([^\\n|\\r]*)$".return = "301 https://pad.ifsr.de/$1"; # security "~* /(\.git|cache|bin|logs|backup|tests)/.*$".return = "403"; # deny running scripts inside core system folders