align php settings with recommendations opcache/jit from php.net (aligned for php 8.3 and 8.4), increased buffernumber to allow parallel requests without writing to file

This commit is contained in:
Benjamin Brummer
2024-12-02 11:53:27 +01:00
parent 79647d4f8c
commit 66408fccb2
3 changed files with 18 additions and 23 deletions

View File

@@ -1,19 +1,13 @@
# https://nginx.org/en/docs/http/ngx_http_core_module.html
client_body_buffer_size 100M;
client_max_body_size 100M;
client_max_body_size 10M;
server_tokens off;
# https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html
fastcgi_buffer_size 16k;
fastcgi_buffers 8 16k;
fastcgi_buffers 32 16K;
# https://nginx.org/en/docs/http/ngx_http_gzip_module.html
gzip on;
gzip_comp_level 2;
gzip_min_length 1024;
gzip_min_length 1M;
gzip_proxied any;
gzip_types *;
#https://nginx.org/en/docs/http/ngx_http_realip_module.html
set_real_ip_from 172.19.0.1;
#real_ip_header X-Real-IP;

View File

@@ -24,8 +24,6 @@ server {
fastcgi_pass app:9000;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
location ~ /\.(?!well-known).* {