dav
This commit is contained in:
@@ -7,25 +7,28 @@ in
|
||||
# webdav
|
||||
# Simple WebDAV server
|
||||
|
||||
# TODO: put this into a chroot like sftp on garp
|
||||
# TODO: parametrize which webdav shares i have?
|
||||
|
||||
services.webdav = {
|
||||
enable = true;
|
||||
# the webdav user uid:gid is fixed
|
||||
# https://github.com/hacdias/webdav?tab=readme-ov-file#configuration
|
||||
settings = {
|
||||
address = "127.0.0.1";
|
||||
port = 9568;
|
||||
prefix = "/";
|
||||
scope = "/mnt/reidun/pub";
|
||||
modify = false;
|
||||
directory = "/mnt/reidun/pub";
|
||||
behindProxy = true;
|
||||
permissions = "R"; # C (Create), R (Read), U (Update), D (Delete)
|
||||
auth = true;
|
||||
users = [
|
||||
{
|
||||
username = "zotero";
|
||||
password = "{bcrypt}$2y$10$9zzZuwd2AvNZXb8WCG/bM..ibOroNnX0sN94UTAV.Jco9LnZ8Whs2";
|
||||
#prefix = "/zotero/";
|
||||
scope = "/mnt/reidun/Various/Zotero";
|
||||
modify = true;
|
||||
directory = "/mnt/reidun/Various/Zotero";
|
||||
permissions = "CRUD"; # C (Create), R (Read), U (Update), D (Delete)
|
||||
}
|
||||
];
|
||||
#cors = {
|
||||
|
||||
Reference in New Issue
Block a user