From a54bedb6c7bce674f201ff4f587ecddb700e989e Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Wed, 22 Nov 2023 16:01:49 +0100 Subject: [PATCH] fix(nextcloud): Increase php string buffer --- machines/compute01/nextcloud.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/machines/compute01/nextcloud.nix b/machines/compute01/nextcloud.nix index b864890..c167cb7 100644 --- a/machines/compute01/nextcloud.nix +++ b/machines/compute01/nextcloud.nix @@ -46,6 +46,21 @@ in { "pm.start_servers" = "6"; }; + phpOptions = { + short_open_tag = "Off"; + expose_php = "Off"; + error_reporting = "E_ALL & ~E_DEPRECATED & ~E_STRICT"; + display_errors = "stderr"; + "opcache.enable_cli" = "1"; + "opcache.interned_strings_buffer" = "32"; + "opcache.max_accelerated_files" = "10000"; + "opcache.memory_consumption" = "128"; + "opcache.revalidate_freq" = "1"; + "opcache.fast_shutdown" = "1"; + "openssl.cafile" = "/etc/ssl/certs/ca-certificates.crt"; + catch_workers_output = "yes"; + }; + systemd.services.nextcloud-preview = { script = "nextcloud-occ preview:pre-generate -vvv"; startAt = "*-*-* 01:00:00 UTC"; @@ -66,7 +81,6 @@ in { updatechecker = false; allow_local_remote_servers = true; - "opcache.interned_strings_buffer" = 32; }; };