浏览代码

Set huge timeout in PHP for SOGo childs to stop

andryyy 8 年之前
父节点
当前提交
ebfc45df9f
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      data/conf/nginx/site.conf

+ 4 - 0
data/conf/nginx/site.conf

@@ -27,6 +27,10 @@ server {
     include fastcgi_params;
     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
     fastcgi_param PATH_INFO $fastcgi_path_info;
+    fastcgi_param PHP_VALUE "max_execution_time = 1200
+                             max_input_time = 1200
+                             memory_limit = 64M";
+    fastcgi_read_timeout 1200;
   }
 
   rewrite ^(/save.+)$ /rspamd$1 last;