extended gzip configuration

This commit is contained in:
Benjamin Brummer
2024-12-01 14:38:48 +01:00
parent 71909c73e0
commit eed358c32b
2 changed files with 18 additions and 7 deletions

View File

@@ -1,9 +1,19 @@
client_max_body_size 100M;
# https://nginx.org/en/docs/http/ngx_http_core_module.html
client_body_buffer_size 100M;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
gzip on;
client_max_body_size 100M;
server_tokens off;
# https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html
fastcgi_buffer_size 16k;
fastcgi_buffers 8 16k;
# https://nginx.org/en/docs/http/ngx_http_gzip_module.html
gzip on;
gzip_comp_level 2;
gzip_min_length 1024;
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

@@ -1,3 +1,4 @@
# https://laravel.com/docs/master/deployment#nginx
server {
listen 80 default_server;
server_name _;