nas0: add webdav
This commit is contained in:
parent
fa40c9c3cb
commit
268b755795
1 changed files with 17 additions and 0 deletions
|
@ -80,4 +80,21 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# WebDAV anonymous reads
|
||||||
|
services.webdav-server-rs = {
|
||||||
|
enable = true;
|
||||||
|
seetings = {
|
||||||
|
location = [
|
||||||
|
{
|
||||||
|
route = [ "/public/*path" ];
|
||||||
|
directory = "/mnt/storage/main/public";
|
||||||
|
handler = "filesystem";
|
||||||
|
methods = [ "webdav-ro" ];
|
||||||
|
autoindex = true;
|
||||||
|
auth = "false";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue