ROCKPro64-Server/system/services/server/nextcloud/nginx/default.nix

19 lines
465 B
Nix
Raw Normal View History

2025-02-28 12:21:09 -05:00
{ config, lib, ... }:
{
services.nginx.virtualHosts."cloud.example.com" = lib.mkIf config.services.nextcloud.enable {
2025-02-28 12:21:09 -05:00
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;
}
'';
};
};
}