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; }; }; };