Add radicale CalDAV/CardDAV server
This commit is contained in:
parent
a77254401b
commit
d8c02837a9
|
@ -176,11 +176,12 @@
|
|||
Legion = systemConfig {
|
||||
hostName = "Legion";
|
||||
systemModules = [
|
||||
./services/nix-serve.nix
|
||||
./services/caddy.nix
|
||||
./services/forgejo.nix
|
||||
./services/grafana.nix
|
||||
./services/minecraft.nix
|
||||
./services/nix-serve.nix
|
||||
./services/radicale.nix
|
||||
./services/sshd.nix
|
||||
./services/syncthing.nix
|
||||
];
|
||||
|
|
21
services/radicale.nix
Normal file
21
services/radicale.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{...}: 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}
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue