Infini-DL360/radicale: init

This commit is contained in:
Infinidoge 2025-01-15 23:26:48 -05:00
parent eb1bfcf1f1
commit a6fe8d37ed
Signed by: Infinidoge
SSH key fingerprint: SHA256:EMoPe5e2dO0gEvtBb2xkZTz5dkyL0rBmuiGTKG5s96E
6 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ common, secrets, ... }:
let
domain = common.subdomain "calendar";
in
{
services.radicale = {
enable = true;
settings = {
server = {
hosts = [
"0.0.0.0:5232"
];
};
auth = {
type = "ldap";
ldap_uri = "ldap://ldap.inx.moe:389";
ldap_base = "dc=ldap,dc=inx,dc=moe";
ldap_reader_dn = "cn=radicale,ou=users,DC=ldap,DC=inx,DC=moe";
ldap_secret_file = secrets.radicale-ldap;
ldap_filter = "(&(objectClass=user)(cn={0}))";
lc_username = true;
};
storage.filesystem_folder = "/srv/radicale";
rights.type = "owner_only";
logging.level = "debug";
};
};
services.nginx.virtualHosts.${domain} = common.nginx.ssl // {
locations."/".proxyPass = "http://localhost:5232";
};
}