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
|
# https://nginx.org/en/docs/http/ngx_http_core_module.html
|
||||||
client_body_buffer_size 100M;
|
client_max_body_size 10M;
|
||||||
client_max_body_size 100M;
|
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
|
|
||||||
# https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html
|
# https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html
|
||||||
fastcgi_buffer_size 16k;
|
fastcgi_buffers 32 16K;
|
||||||
fastcgi_buffers 8 16k;
|
|
||||||
|
|
||||||
# https://nginx.org/en/docs/http/ngx_http_gzip_module.html
|
# https://nginx.org/en/docs/http/ngx_http_gzip_module.html
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_comp_level 2;
|
gzip_comp_level 2;
|
||||||
gzip_min_length 1024;
|
gzip_min_length 1M;
|
||||||
gzip_proxied any;
|
gzip_proxied any;
|
||||||
gzip_types *;
|
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_pass app:9000;
|
||||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_buffer_size 16k;
|
|
||||||
fastcgi_buffers 4 16k;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /\.(?!well-known).* {
|
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
|
# https://www.php.net/manual/en/ini.core.php
|
||||||
memory_limit=512M
|
post_max_size = 10M
|
||||||
post_max_size = 60M
|
upload_max_filesize = 10M
|
||||||
upload_max_filesize = 50M
|
|
||||||
|
|
||||||
# https://www.php.net/manual/en/opcache.configuration.php
|
[opcache]
|
||||||
opcache.enable=1
|
# https://www.php.net/manual/en/opcache.installation.php#opcache.installation.recommended
|
||||||
opcache.preload=/var/www/html/preload.php
|
opcache.memory_consumption=128
|
||||||
opcache.preload_user=www-data
|
opcache.interned_strings_buffer=8
|
||||||
opcache.max_accelerated_files=300000
|
opcache.max_accelerated_files=4000
|
||||||
opcache.revalidate_freq=30
|
opcache.revalidate_freq=60
|
||||||
opcache.jit_buffer_size=256M
|
opcache.enable_cli=1
|
||||||
opcache.jit=1205
|
|
||||||
opcache.memory_consumption=1024M
|
[jit]
|
||||||
|
# https://wiki.php.net/rfc/jit_config_defaults
|
||||||
|
opcache.jit=tracing
|
||||||
|
opcache.jit_buffer_size=64M
|
||||||
|
|||||||
Reference in New Issue
Block a user