19 lines
433 B
Nix
19 lines
433 B
Nix
|
{ pkgs, config, ... }:
|
||
|
{
|
||
|
services.nginx.virtualHosts."cloud.${config.domains.jim1}" = {
|
||
|
enableACME = true;
|
||
|
addSSL = true;
|
||
|
locations."/" = {
|
||
|
proxyWebsockets = true;
|
||
|
extraConfig = "
|
||
|
location /.well-known/carddav {
|
||
|
return 301 $scheme://$host/remote.php/dav;
|
||
|
}
|
||
|
location /.well-known/caldav {
|
||
|
return 301 $scheme://$host/remote.php/dav;
|
||
|
}
|
||
|
";
|
||
|
};
|
||
|
};
|
||
|
}
|