2022-06-12 05:31:30 -07:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.radicale = {
|
|
|
|
enable = true;
|
2022-06-12 08:07:33 -07:00
|
|
|
package = pkgs.radicale;
|
2022-06-12 05:31:30 -07:00
|
|
|
settings = {
|
|
|
|
server.hosts = [ "0.0.0.0:5252" ];
|
|
|
|
};
|
|
|
|
};
|
2022-06-13 22:23:09 -07:00
|
|
|
|
2022-06-12 08:07:33 -07:00
|
|
|
networking.firewall.allowedTCPPorts = [ 5252 ];
|
2022-06-13 22:23:09 -07:00
|
|
|
|
|
|
|
services.nginx.virtualHosts."cal.mossnet.lan" = {
|
|
|
|
enableACME = false;
|
|
|
|
forceSSL = false;
|
|
|
|
|
|
|
|
locations."/" = {
|
|
|
|
extraConfig = ''
|
|
|
|
proxy_pass http://localhost:5252/;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2022-06-12 05:31:30 -07:00
|
|
|
}
|