NixOS-Config/modules/system/services/server/fileserver/public/nextcloud/nginx/default.nix

20 lines
450 B
Nix
Raw Normal View History

{ config, ... }:
{
services.nginx.virtualHosts."cloud.${config.domains.jim1}" = {
enableACME = true;
addSSL = true;
2024-11-13 09:43:47 -05:00
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;
}
'';
};
};
}