diff --git a/nginx-app.conf b/nginx-app.conf index dc3deb4..cac5a9c 100644 --- a/nginx-app.conf +++ b/nginx-app.conf @@ -3,9 +3,14 @@ server { listen [::]:80 default_server; access_log off; - client_max_body_size 10m; - fastcgi_buffers 16 16k; - fastcgi_buffer_size 16k; + client_max_body_size 64m; + error_log /dev/stdout info; + fastcgi_buffering off; + fastcgi_request_buffering off; + gzip_vary on; + gzip_min_length 10240; + gzip_proxied expired no-cache no-store private auth; + gzip_types text/plain text/css application/javascript; index index.php index.html; root /var/www/html/public; server_tokens off; @@ -24,11 +29,15 @@ server { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; + include fastcgi_params; + + fastcgi_param HTTPS $my_https; + fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SERVER_NAME $host; - fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_param HTTPS $my_https; - fastcgi_param PHP_ADMIN_VALUE "sendmail_path=/usr/sbin/sendmail -i -t"; + + fastcgi_read_timeout 600s; + fastcgi_send_timeout 600s; } }