Share: Use UTF-8.

This commit is contained in:
Dmitry Voronin 2025-01-09 20:12:27 +03:00
parent 3c3d03e205
commit 9aff644b67
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -2,6 +2,10 @@
let let
cfg = config.const.host.nginx; cfg = config.const.host.nginx;
root = "/storage/hot/share"; root = "/storage/hot/share";
index = ''
autoindex on;
charset UTF-8;
'';
in in
{ {
"share.${cfg.domain}" = { "share.${cfg.domain}" = {
@ -10,17 +14,11 @@ in
# "~* /$" = { # "~* /$" = {
"= /" = { "= /" = {
inherit root; inherit root;
extraConfig = extraConfig = index + cfg.allowLocal;
cfg.allowLocal
+ ''
autoindex on;
'';
}; };
"/" = { "/" = {
inherit root; inherit root;
extraConfig = '' extraConfig = index;
autoindex on;
'';
}; };
}; };
}; };