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