website: pad: redirect legacy codimd pads

This commit is contained in:
Rouven Seifert 2023-08-24 15:33:52 +02:00
parent df7e657782
commit d669f15c49
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

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