20 lines
496 B
Nix
20 lines
496 B
Nix
{ lib, config, ... }:
|
|
{
|
|
services.nginx.virtualHosts."cloud.${config.domains.jim1}" = lib.mkIf config.services.nextcloud.enable {
|
|
enableACME = true;
|
|
addSSL = true;
|
|
onlySSL = 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;
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|