2024-11-04 22:41:38 -05:00
|
|
|
{ config, ... }:
|
2024-10-29 01:07:07 -04:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|