From 9aff644b672b3a90a4a9e94f63f5feaf640dd8f2 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 9 Jan 2025 20:12:27 +0300 Subject: [PATCH] Share: Use UTF-8. --- host/x86_64-linux/home/nginx/Share.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/host/x86_64-linux/home/nginx/Share.nix b/host/x86_64-linux/home/nginx/Share.nix index aef0c2c..43e74b1 100644 --- a/host/x86_64-linux/home/nginx/Share.nix +++ b/host/x86_64-linux/home/nginx/Share.nix @@ -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; }; }; };