From 40d120bebd05f6dfafe0db0b10c8b8a452e993d3 Mon Sep 17 00:00:00 2001 From: Acenl12 <38886380+Acenl12@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:22:50 +0100 Subject: [PATCH] Update Nginx.conf --- Nginx.conf | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/Nginx.conf b/Nginx.conf index a7131f2..e8367b7 100644 --- a/Nginx.conf +++ b/Nginx.conf @@ -3,18 +3,18 @@ worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events { - worker_connections 768; + worker_connections 8092; # multi_accept on; } http { ## # Basic Settings ## - sendfile on; + sendfile off; tcp_nopush on; types_hash_max_size 2048; - # server_tokens off; - # server_names_hash_bucket_size 64; + server_tokens off; + server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime.types; default_type application/octet-stream; @@ -38,7 +38,29 @@ http { # gzip_http_version 1.1; # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; - ## + gzip_disable "msie6"; + + gzip_comp_level 6; + gzip_min_length 1100; + gzip_buffers 16 8k; + gzip_proxied any; + gzip_types + text/plain + text/css + text/js + text/xml + text/javascript + application/javascript + application/x-javascript + application/json + application/xml + application/rss+xml + image/svg+xml; +proxy_connect_timeout 1h; +proxy_send_timeout 1h; +proxy_read_timeout 1h; +tcp_nodelay on; ## Sends data as fast as it can not buffering large chunks, saves about 200ms per request. + ## # Virtual Host Configs ## include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*;