From 015c2578d4e6cff3c080b04c651a41faa1db08bc Mon Sep 17 00:00:00 2001 From: Mayel Date: Wed, 14 Jul 2021 14:19:08 +0200 Subject: [PATCH] conf --- abra.sh | 2 +- nginx.conf | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/abra.sh b/abra.sh index 0e32a3a..f97bf25 100644 --- a/abra.sh +++ b/abra.sh @@ -1,4 +1,4 @@ -export NGINX_DEFAULT_CONF_VERSION=v3 +export NGINX_DEFAULT_CONF_VERSION=v4 export PHP_UPLOADS_CONF_VERSION=v3 export ENTRYPOINT_CONF_VERSION=v2 export ENTRYPOINT_MAILRELAY_CONF_VERSION=v1 diff --git a/nginx.conf b/nginx.conf index 20cd333..474b325 100644 --- a/nginx.conf +++ b/nginx.conf @@ -32,14 +32,17 @@ server { # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { - try_files $uri =404; + try_files $uri /index.php =404; fastcgi_pass app:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(/.+)$; - include fastcgi_params; fastcgi_param REQUEST_URI $request_uri; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_read_timeout 600; + fastcgi_buffers 16 16k; + fastcgi_buffer_size 32k; + include fastcgi_params; } # deny access to .htaccess files, if Apache's document root