summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-04-23 11:47:28 +0200
committerlassulus <lass@lassul.us>2017-04-23 11:47:28 +0200
commit06912dd23dd4421b0c262741b1eda6a1b5e50249 (patch)
treee0827961b653d392b44d286cd9d007f0b28d9a2c /lass
parent9da804418f9a889df641642cac08769eb7b20758 (diff)
l 2 websites util: give more power to wordpress
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/websites/util.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/lass/2configs/websites/util.nix b/lass/2configs/websites/util.nix
index 6d14de731..36ae1a904 100644
--- a/lass/2configs/websites/util.nix
+++ b/lass/2configs/websites/util.nix
@@ -168,6 +168,7 @@ rec {
'';
locations."~ \.php$".extraConfig = ''
fastcgi_pass unix:/srv/http/${domain}/phpfpm.pool;
+ fastcgi_read_timeout 120;
include ${pkgs.nginx}/conf/fastcgi.conf;
'';
#Directives to send expires headers and turn off 404 error logging.
@@ -182,10 +183,10 @@ rec {
user = nginx
group = nginx
pm = dynamic
- pm.max_children = 15
- pm.start_servers = 3
- pm.min_spare_servers = 1
- pm.max_spare_servers = 10
+ pm.max_children = 25
+ pm.start_servers = 5
+ pm.min_spare_servers = 3
+ pm.max_spare_servers = 20
listen.owner = nginx
listen.group = nginx
php_admin_value[error_log] = 'stderr'