server7/storage: enable nginx webdav
This commit is contained in:
parent
babf880949
commit
b2f5af9abe
|
@ -36,15 +36,18 @@ name:
|
||||||
http2 = true;
|
http2 = true;
|
||||||
# addSSL = true;
|
# addSSL = true;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = let authFile = pkgs.writeText "htpasswd" "k-ot:sawCOTsl/fIUY";
|
"/" =
|
||||||
in {
|
let
|
||||||
alias = "/srv/files/";
|
authFile = pkgs.writeText "htpasswd" "k-ot:sawCOTsl/fIUY";
|
||||||
extraConfig = ''
|
in {
|
||||||
|
alias = "/srv/files/";
|
||||||
|
extraConfig = ''
|
||||||
auth_basic "Chaos";
|
auth_basic "Chaos";
|
||||||
auth_basic_user_file ${authFile};
|
auth_basic_user_file ${authFile};
|
||||||
fancyindex on;
|
fancyindex on;
|
||||||
# autoindex on;
|
# autoindex on;
|
||||||
'';
|
dav_access all:r;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue