From 53566aa9e42857a0d0292576156ecbe23ee1ec39 Mon Sep 17 00:00:00 2001 From: materus Date: Thu, 28 Mar 2024 17:13:49 +0100 Subject: [PATCH] waffentrager: nextcloud php settings --- .../host/waffentrager/services/nextcloud.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/configurations/host/waffentrager/services/nextcloud.nix b/configurations/host/waffentrager/services/nextcloud.nix index 36a8b24..0aab744 100644 --- a/configurations/host/waffentrager/services/nextcloud.nix +++ b/configurations/host/waffentrager/services/nextcloud.nix @@ -46,6 +46,7 @@ mail_smtpmode = "sendmail"; mail_sendmailmode = "pipe"; enable_previews = true; + preview_format = "webp"; enabledPreviewProviders = [ ''OC\Preview\Movie'' ''OC\Preview\PNG'' @@ -68,13 +69,17 @@ globalProfiles = true; phpOptions = { - "opcache.interned_strings_buffer" = "10"; + "opcache.memory_consumption" = "512"; + "opcache.interned_strings_buffer" = "64"; + "opcache.max_accelerated_files"="50000"; "opcache.jit" = "1255"; "opcache.jit_buffer_size" = "128M"; - "opcache.revalidate_freq" = "60"; + "opcache.validate_timestamps" = "0"; + "opcache.revalidate_freq" = "0"; + "opcache.fast_shutdown" = "1"; "opcache.save_comments" = "1"; }; - phpExtraExtensions = ex: [ ex.zip ex.zlib ex.tidy ]; + phpExtraExtensions = ex: [ ex.zip ex.zlib ex.tidy ex.smbclient ]; }; services.nginx.virtualHosts.${config.services.nextcloud.hostName} = { forceSSL = true;