2024-05-23 13:39:48 +03:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2025-01-20 22:30:30 +02:00
|
|
|
imports = [ ./cert-store-client.nix ];
|
2025-01-08 13:10:43 +02:00
|
|
|
|
2025-01-20 23:11:21 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [ 443 ];
|
2024-06-02 05:53:39 +03:00
|
|
|
networking.firewall.allowedUDPPorts = [ 443 ];
|
2024-05-23 13:39:48 +03:00
|
|
|
|
2024-12-03 23:46:24 +02:00
|
|
|
services = {
|
|
|
|
nextcloud = {
|
2025-03-31 15:09:27 +03:00
|
|
|
package = pkgs.nextcloud31;
|
2024-12-03 23:46:24 +02:00
|
|
|
enable = true;
|
|
|
|
hostName = "nextcloud.vsinerva.fi";
|
|
|
|
autoUpdateApps.enable = true;
|
|
|
|
https = true;
|
|
|
|
maxUploadSize = "10G";
|
|
|
|
config = {
|
|
|
|
adminpassFile = "/var/lib/nextcloud/adminpass";
|
|
|
|
};
|
|
|
|
settings = {
|
|
|
|
overwriteprotocol = "https";
|
|
|
|
maintenancce_window_start = 1;
|
|
|
|
opcache.interned_strings_buffer = 32;
|
|
|
|
};
|
2024-06-02 05:53:39 +03:00
|
|
|
};
|
2024-05-23 13:39:48 +03:00
|
|
|
|
2024-12-03 23:46:24 +02:00
|
|
|
nginx = {
|
|
|
|
recommendedGzipSettings = true;
|
2025-01-15 00:29:25 +02:00
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedProxySettings = true;
|
2024-12-03 23:46:24 +02:00
|
|
|
|
|
|
|
virtualHosts.${config.services.nextcloud.hostName} = {
|
|
|
|
forceSSL = true;
|
|
|
|
kTLS = true;
|
2025-01-20 22:30:30 +02:00
|
|
|
sslCertificate = "/mnt/acme/fullchain.pem";
|
|
|
|
sslCertificateKey = "/mnt/acme/key.pem";
|
2024-06-02 05:53:39 +03:00
|
|
|
};
|
|
|
|
};
|
2024-06-02 16:18:19 +03:00
|
|
|
};
|
|
|
|
}
|