add trick to selectively enable autoindex

This commit is contained in:
Michele Guerini Rocco 2024-07-24 22:46:46 +02:00
parent 8043ebb7a6
commit 7c772395de
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -393,7 +393,11 @@
# User static files
locations."/~rnhmjoj/" = {
alias = "/run/nginx/static/rnhmjoj/";
extraConfig = "charset UTF-8;";
extraConfig = ''
charset UTF-8;
# directories with listing
location ~ /~rnhmjoj/[^/]+.index/ { autoindex on; }
'';
};
locations."/~giu/" = {
alias = "/run/nginx/static/giu/";