aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-04 18:10:20 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-04 18:10:20 +0100
commitec9ff2b8fdd8c4d21c904f86f14bfbe88a13a6ce (patch)
treec90b2b1484655ee492f14f87bcd2801b91712a5b
parent712ccefd39a5a71287ada2c7441c28e5cdd80f08 (diff)
downloadNix-ec9ff2b8fdd8c4d21c904f86f14bfbe88a13a6ce.tar.gz
Nix-ec9ff2b8fdd8c4d21c904f86f14bfbe88a13a6ce.tar.zst
Nix-ec9ff2b8fdd8c4d21c904f86f14bfbe88a13a6ce.zip
Add opcache for nextcloud
-rw-r--r--virtual/eldiron.nix2
-rw-r--r--virtual/packages/nextcloud.nix2
2 files changed, 3 insertions, 1 deletions
diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix
index 280b69a..51e2bb9 100644
--- a/virtual/eldiron.nix
+++ b/virtual/eldiron.nix
@@ -155,6 +155,8 @@
155 extension=${pkgs.phpPackages.redis}/lib/php/extensions/redis.so 155 extension=${pkgs.phpPackages.redis}/lib/php/extensions/redis.so
156 ; For nextcloud 156 ; For nextcloud
157 extension=${pkgs.phpPackages.apcu}/lib/php/extensions/apcu.so 157 extension=${pkgs.phpPackages.apcu}/lib/php/extensions/apcu.so
158 ; For nextcloud
159 zend_extension=${pkgs.php}/lib/php/extensions/opcache.so
158 ''; 160 '';
159 extraConfig = '' 161 extraConfig = ''
160 log_level = notice 162 log_level = notice
diff --git a/virtual/packages/nextcloud.nix b/virtual/packages/nextcloud.nix
index d332a10..e39868a 100644
--- a/virtual/packages/nextcloud.nix
+++ b/virtual/packages/nextcloud.nix
@@ -243,7 +243,7 @@ let
243 php_admin_value[output_buffering] = 0 243 php_admin_value[output_buffering] = 0
244 php_admin_value[max_execution_time] = 1800 244 php_admin_value[max_execution_time] = 1800
245 php_admin_value[zend_extension] = "opcache" 245 php_admin_value[zend_extension] = "opcache"
246 ;php_value[opcache.enable] = 1 246 php_value[opcache.enable] = 1
247 php_value[opcache.enable_cli] = 1 247 php_value[opcache.enable_cli] = 1
248 php_value[opcache.interned_strings_buffer] = 8 248 php_value[opcache.interned_strings_buffer] = 8
249 php_value[opcache.max_accelerated_files] = 10000 249 php_value[opcache.max_accelerated_files] = 10000