1
0
forked from c3d2/nix-config

server7/storage: enable nginx webdav

This commit is contained in:
Astro 2020-01-26 21:59:55 +01:00
parent babf880949
commit b2f5af9abe

View File

@ -36,7 +36,9 @@ name:
http2 = true;
# addSSL = true;
locations = {
"/" = let authFile = pkgs.writeText "htpasswd" "k-ot:sawCOTsl/fIUY";
"/" =
let
authFile = pkgs.writeText "htpasswd" "k-ot:sawCOTsl/fIUY";
in {
alias = "/srv/files/";
extraConfig = ''
@ -44,6 +46,7 @@ name:
auth_basic_user_file ${authFile};
fancyindex on;
# autoindex on;
dav_access all:r;
'';
};
};