diff --git a/debian/nginx/invoiceninja.conf b/debian/nginx/invoiceninja.conf index 5b5de16..e133344 100644 --- a/debian/nginx/invoiceninja.conf +++ b/debian/nginx/invoiceninja.conf @@ -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; diff --git a/debian/nginx/laravel.conf b/debian/nginx/laravel.conf index 7404f0c..aa02988 100644 --- a/debian/nginx/laravel.conf +++ b/debian/nginx/laravel.conf @@ -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).* { diff --git a/debian/php/php.ini b/debian/php/php.ini index 22e817a..a303dea 100644 --- a/debian/php/php.ini +++ b/debian/php/php.ini @@ -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