From 433a613a33f4d33b4281b9532512be61134d5152 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 20 Mar 2025 14:31:39 +0100 Subject: [PATCH] dav --- profiles/http/services/webdav-zotero.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/profiles/http/services/webdav-zotero.nix b/profiles/http/services/webdav-zotero.nix index 1fc5fff..439fb5e 100644 --- a/profiles/http/services/webdav-zotero.nix +++ b/profiles/http/services/webdav-zotero.nix @@ -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 = {