Remove radicale, add xandikos as replacement

This commit is contained in:
Evie Litherland-Smith 2024-09-29 10:49:10 +01:00
parent e8065469c3
commit 69a0e81d5c
2 changed files with 20 additions and 23 deletions

View file

@ -1,23 +0,0 @@
{ ... }:
let
port = "5232";
in
{
services.radicale = {
enable = true;
settings = {
server = {
hosts = [ "0.0.0.0:${port}" ];
};
auth = {
type = "htpasswd";
htpasswd_filename = "/etc/radicale/users";
delay = 1;
};
};
# rights = {};
};
services.caddy.virtualHosts."cal.xenia.me.uk".extraConfig = ''
reverse_proxy http://localhost:${port}
'';
}

View file

@ -0,0 +1,20 @@
{ ... }:
let
port = "5232";
in
{
services.xandikos = {
inherit port;
enable = true;
routePrefix = "/cal";
extraOptions = [ "--defaults" ];
};
services.caddy.virtualHosts."cal.xenia.me.uk".extraConfig = ''
basicauth {
pixelifytica $2a$14$AwYqa81IWL8lU7B5SrQhlOILZj4VqCgcIn9cte8nytQIP/WhfJoSG
}
respond /.well-known/caldav http://localhost:${port}/user/calendars
respond /.well-known/carddav http://localhost:${port}/user/contacts
reverse_proxy http://localhost:${port}
'';
}