1
0
Fork 0
forked from fabian/nix
nix_config/sys/platforms/vps/srv/radicale.nix
2025-09-21 00:50:42 -06:00

41 lines
869 B
Nix

{
lib,
pkgs,
...
}:
with lib; {
services = {
nginx = {
virtualHosts."dav.posixlycorrect.com" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 128;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:5232";
};
};
};
radicale = {
enable = true;
settings = {
server = {
hosts = [ "127.0.0.1:5232" ];
};
auth = {
type = "htpasswd";
htpasswd_filename = "/var/trust/radicale/htpasswd";
htpasswd_encryption = "bcrypt";
};
storage = {
filesystem_folder = "/var/lib/radicale/collections";
};
web.type = "internal";
rights.type = "authenticated";
};
};
};
}