feat(shan): host radicale

This commit is contained in:
Nydragon 2024-11-17 18:50:24 +01:00
parent bb04ac2f4f
commit c76755e211
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE

View file

@ -141,7 +141,26 @@
openFirewall = true; openFirewall = true;
host = "0.0.0.0"; host = "0.0.0.0";
}; };
radicale = {
enable = true;
# Documentation at <https://radicale.org/v3.html#configuration>
settings = {
server = {
hosts = [ "0.0.0.0:5232" ];
};
auth = {
type = "htpasswd";
htpasswd_filename = "/etc/radicale/users";
htpasswd_encryption = "autodetect";
};
storage = {
filesystem_folder = "/var/lib/radicale/collections";
};
};
};
}; };
networking.firewall.allowedTCPPorts = [ 5232 ];
# security.acme = { # security.acme = {
#acceptTerms = true; #acceptTerms = true;