nixos-config/modules/system/services/server/fileserver/nextcloud/nginx/default.nix

19 lines
463 B
Nix
Raw Normal View History

2025-02-25 01:37:56 -05:00
{ config, lib, ... }:
2025-01-07 13:35:36 -05:00
{
2025-02-25 03:03:43 -05:00
services.nginx.virtualHosts."cloud.nixfox.ca" = lib.mkIf config.services.nextcloud.enable {
2025-01-07 13:35:36 -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;
}
'';
};
};
}