add trick to selectively enable autoindex
This commit is contained in:
parent
8043ebb7a6
commit
7c772395de
@ -393,7 +393,11 @@
|
|||||||
# User static files
|
# User static files
|
||||||
locations."/~rnhmjoj/" = {
|
locations."/~rnhmjoj/" = {
|
||||||
alias = "/run/nginx/static/rnhmjoj/";
|
alias = "/run/nginx/static/rnhmjoj/";
|
||||||
extraConfig = "charset UTF-8;";
|
extraConfig = ''
|
||||||
|
charset UTF-8;
|
||||||
|
# directories with listing
|
||||||
|
location ~ /~rnhmjoj/[^/]+.index/ { autoindex on; }
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
locations."/~giu/" = {
|
locations."/~giu/" = {
|
||||||
alias = "/run/nginx/static/giu/";
|
alias = "/run/nginx/static/giu/";
|
||||||
|
Loading…
Reference in New Issue
Block a user