Просмотр исходного кода

revert unnecesary nginx/php timeouts changes

Robert Zollner 6 лет назад
Родитель
Сommit
ee22261ad9
2 измененных файлов с 4 добавлено и 4 удалено
  1. 3 3
      src/deb/nginx/nginx.conf
  2. 1 1
      src/deb/php/php.ini

+ 3 - 3
src/deb/nginx/nginx.conf

@@ -17,13 +17,13 @@ http {
     sendfile                        on;
     tcp_nopush                      on;
     tcp_nodelay                     on;
-    client_header_timeout           600s;
-    client_body_timeout             600s;
+    client_header_timeout           180s;
+    client_body_timeout             180s;
     client_header_buffer_size       2k;
     client_body_buffer_size         256k;
     client_max_body_size            256m;
     large_client_header_buffers     4 8k;
-    send_timeout                    600s;
+    send_timeout                    60s;
     keepalive_timeout               30s;
     keepalive_requests              100000;
     reset_timedout_connection       on;

+ 1 - 1
src/deb/php/php.ini

@@ -382,7 +382,7 @@ expose_php = Off
 ; Maximum execution time of each script, in seconds
 ; http://php.net/max-execution-time
 ; Note: This directive is hardcoded to 0 for the CLI SAPI
-max_execution_time = 600
+max_execution_time = 60
 
 ; Maximum amount of time each script may spend parsing request data. It's a good
 ; idea to limit this time on productions servers in order to eliminate unexpectedly