mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
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:
12
debian/nginx/invoiceninja.conf
vendored
12
debian/nginx/invoiceninja.conf
vendored
@@ -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;
|
||||
|
||||
2
debian/nginx/laravel.conf
vendored
2
debian/nginx/laravel.conf
vendored
@@ -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).* {
|
||||
|
||||
27
debian/php/php.ini
vendored
27
debian/php/php.ini
vendored
@@ -1,14 +1,17 @@
|
||||
[core]
|
||||
# https://www.php.net/manual/en/ini.core.php
|
||||
memory_limit=512M
|
||||
post_max_size = 60M
|
||||
upload_max_filesize = 50M
|
||||
post_max_size = 10M
|
||||
upload_max_filesize = 10M
|
||||
|
||||
# https://www.php.net/manual/en/opcache.configuration.php
|
||||
opcache.enable=1
|
||||
opcache.preload=/var/www/html/preload.php
|
||||
opcache.preload_user=www-data
|
||||
opcache.max_accelerated_files=300000
|
||||
opcache.revalidate_freq=30
|
||||
opcache.jit_buffer_size=256M
|
||||
opcache.jit=1205
|
||||
opcache.memory_consumption=1024M
|
||||
[opcache]
|
||||
# https://www.php.net/manual/en/opcache.installation.php#opcache.installation.recommended
|
||||
opcache.memory_consumption=128
|
||||
opcache.interned_strings_buffer=8
|
||||
opcache.max_accelerated_files=4000
|
||||
opcache.revalidate_freq=60
|
||||
opcache.enable_cli=1
|
||||
|
||||
[jit]
|
||||
# https://wiki.php.net/rfc/jit_config_defaults
|
||||
opcache.jit=tracing
|
||||
opcache.jit_buffer_size=64M
|
||||
|
||||
Reference in New Issue
Block a user