Browse Source

Update H2o conf (#4367)

* Update to use 512 children in vagrant

* Add fastcgi keepalive timeout to 65s
Change acces and error log
Joan Miquel 6 years ago
parent
commit
19cef8bcec
2 changed files with 4 additions and 1 deletions
  1. 3 0
      frameworks/PHP/php/deploy/h2o.conf
  2. 1 1
      frameworks/PHP/php/php-h2o.dockerfile

+ 3 - 0
frameworks/PHP/php/deploy/h2o.conf

@@ -1,6 +1,8 @@
 server-name: "h2o"
 user: www-data
 max-connections: 65536
+access-log: /dev/null
+error-log: /dev/stderr
 
 listen:
   port: 8080
@@ -13,6 +15,7 @@ hosts:
 
 file.custom-handler:                  # handle PHP scripts
   extension: .php
+  fastcgi.timeout.keepalive: 3900
   fastcgi.connect:
     port: /var/run/php/php7.3-fpm.sock
     type: unix

+ 1 - 1
frameworks/PHP/php/php-h2o.dockerfile

@@ -14,7 +14,7 @@ RUN apt-get update -yqq > /dev/null && \
 
 COPY deploy/conf/* /etc/php/7.3/fpm/
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 ### Install h2o