Remove radicale, add xandikos as replacement
This commit is contained in:
parent
e8065469c3
commit
69a0e81d5c
|
@ -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}
|
||||
'';
|
||||
}
|
20
system/services/xandikos.nix
Normal file
20
system/services/xandikos.nix
Normal 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}
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue