diff --git a/hosts/server7/containers/storage/default.nix b/hosts/server7/containers/storage/default.nix index 18750efb..138d55d8 100644 --- a/hosts/server7/containers/storage/default.nix +++ b/hosts/server7/containers/storage/default.nix @@ -36,15 +36,18 @@ name: http2 = true; # addSSL = true; locations = { - "/" = let authFile = pkgs.writeText "htpasswd" "k-ot:sawCOTsl/fIUY"; - in { - alias = "/srv/files/"; - extraConfig = '' + "/" = + let + authFile = pkgs.writeText "htpasswd" "k-ot:sawCOTsl/fIUY"; + in { + alias = "/srv/files/"; + extraConfig = '' auth_basic "Chaos"; auth_basic_user_file ${authFile}; - fancyindex on; - # autoindex on; - ''; + fancyindex on; + # autoindex on; + dav_access all:r; + ''; }; }; };