2024-07-25 15:24:11 -05:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-07-29 15:02:40 -05:00
|
|
|
services.radicale = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
auth = {
|
|
|
|
type = "htpasswd";
|
|
|
|
htpasswd_encryption = "md5";
|
2024-08-07 15:24:17 -05:00
|
|
|
htpasswd_filename = config.sops.secrets.radicale-users.path;
|
2024-07-25 15:24:11 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-07-27 19:11:57 -05:00
|
|
|
networking.firewall.allowedTCPPorts = [5232];
|
2024-07-29 15:02:40 -05:00
|
|
|
|
|
|
|
services.nginx.virtualHosts."cal.venberg.xyz" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:5232";
|
|
|
|
};
|
|
|
|
};
|
2024-07-30 15:25:53 -05:00
|
|
|
|
|
|
|
imports = [./nginx.nix];
|
2024-07-25 15:24:11 -05:00
|
|
|
}
|