nixos/services/nextcloud/default.nix

42 lines
1.3 KiB
Nix
Raw Normal View History

2023-08-30 07:37:40 +01:00
{ pkgs, config, ... }: {
services.nextcloud = {
enable = true;
2023-07-16 17:56:45 +01:00
package = pkgs.nextcloud27;
hostName = "cloud.xenia.me.uk";
config = {
adminuser = "xenia";
adminpassFile = "/secrets/nextcloud_admin.txt";
};
extraOptions = {
2023-08-30 07:37:40 +01:00
trusted_proxies = [ "192.168.1.230" ];
overwriteprotocol = "https";
};
phpOptions = {
catch_workers_output = "yes";
display_errors = "stderr";
error_reporting = "E_ALL & ~E_DEPRECATED & ~E_STRICT";
expose_php = "Off";
"opcache.enable_cli" = "1";
"opcache.fast_shutdown" = "1";
"opcache.interned_strings_buffer" = "8";
"opcache.max_accelerated_files" = "10000";
"opcache.memory_consumption" = "128";
"opcache.revalidate_freq" = "1";
"openssl.cafile" = "/etc/ssl/certs/ca-certificates.crt";
short_open_tag = "Off";
2023-08-30 07:37:40 +01:00
# upload_max_filesize = "16G";
# post_max_size = "16G";
max_input_time = "3600";
max_execution_time = "3600";
};
2023-08-30 07:37:40 +01:00
extraApps = with pkgs.nextcloud26Packages.apps; {
inherit calendar contacts bookmarks;
};
extraAppsEnable = true;
};
2023-08-30 07:37:40 +01:00
services.nginx.virtualHosts.${config.services.nextcloud.hostName}.listen = [{
addr = "localhost";
port = 8000;
}];
}