diff options
author | Ben Sima <ben@bsima.me> | 2023-11-06 11:32:45 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-11-06 11:32:45 -0400 |
commit | 2b4f700d7ec4ba7426119ff2404094a6fd1fe53c (patch) | |
tree | 73760b6500793e3fcd2d226dec63f8ac2815bef3 /Biz | |
parent | a6693e1fdd9a0d86e1f3246042d913c751ea1415 (diff) |
Add public collection for radicale
This will allow me to create a public calendar to share with people instead of
using my iCloud calendar.
Diffstat (limited to 'Biz')
-rw-r--r-- | Biz/Cloud/Web.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index 913bded..532c843 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -39,6 +39,33 @@ in radicale = { enable = true; + rights = { + # Allow reading root collection for authenticated users + root = { + user = ".+"; + collection = ""; + permissions = "R"; + }; + # Allow reading and writing principal collection (same as username) + principal = { + user = ".+"; + collection = "{user}"; + permissions = "RW"; + }; + # Allow reading and writing calendars and address books that are direct + # children of the principal collection + calendars = { + user = ".+"; + collection = "{user}/[^/]+"; + permissions = "rw"; + }; + # Allow any authenticated user to modify the public collection + public = { + user = ".*"; + collection = "public/.*"; + permissions = "rw"; + }; + }; settings = { server = { hosts = [ @@ -53,6 +80,7 @@ in }; }; }; + gmnisrv = { enable = false; listen = "0.0.0.0:${toString ports.gemini} [::]:${toString ports.gemini}"; |