nixos-conf/services/nextcloud.nix

41 lines
860 B
Nix
Raw Normal View History

2024-05-23 13:39:48 +03:00
{ config, pkgs, ... }:
{
imports = [ ./acme-dns.nix ];
2024-06-02 16:18:19 +03:00
networking.firewall.allowedTCPPorts = [
80
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 = {
package = pkgs.nextcloud30;
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;
virtualHosts.${config.services.nextcloud.hostName} = {
forceSSL = true;
kTLS = true;
2025-01-07 13:11:54 +02:00
enableACME = true;
acmeRoot = null;
2024-06-02 05:53:39 +03:00
};
};
2024-06-02 16:18:19 +03:00
};
}