2024-07-25 22:24:11 +02:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-07-29 22:02:40 +02:00
|
|
|
services.radicale = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
auth = {
|
|
|
|
type = "htpasswd";
|
|
|
|
htpasswd_encryption = "md5";
|
|
|
|
htpasswd_filename = "${inputs.nix-secrets}/radicale-users";
|
2024-07-25 22:24:11 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-07-28 02:11:57 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [5232];
|
2024-07-29 22:02:40 +02:00
|
|
|
|
|
|
|
services.nginx.virtualHosts."cal.venberg.xyz" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:5232";
|
|
|
|
};
|
|
|
|
};
|
2024-07-25 22:24:11 +02:00
|
|
|
}
|