From be3923e05128b0501cd0274b7c14b063c95d2c01 Mon Sep 17 00:00:00 2001 From: yaroslav Date: Wed, 25 Mar 2026 10:58:17 +0200 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B4=D0=B0=D1=82=D0=B8=20nginx.co?= =?UTF-8?q?nf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..04600fd --- /dev/null +++ b/nginx.conf @@ -0,0 +1,55 @@ +user nginx; +worker_processes 2; + +error_log /var/log/nginx/error.log warn; + +worker_rlimit_nofile 8192; + + +events +{ + worker_connections 8192; + multi_accept on; +} + + +http +{ + + + sendfile on; + tcp_nopush on; + tcp_nodelay on; + reset_timedout_connection on; + keepalive_timeout 120; + keepalive_requests 1000; + server_tokens off; + send_timeout 15; + client_body_timeout 15; + client_header_timeout 15; + server_names_hash_max_size 4096; + + client_max_body_size 10m; + client_body_buffer_size 128k; + + include /etc/nginx/mime.types; + default_type application/octet-stream; + + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + #access_log /var/log/nginx/access.log main; + + gzip on; + gzip_static on; + gzip_types text/plain text/xml application/xml application/x-javascript text/javascript text/css application/json text/json application/pdf application/x-font-ttf image/x-icon; + gzip_comp_level 9; + gzip_proxied any; + gzip_min_length 1000; + gzip_disable "msie6"; + gzip_vary on; + + + include /etc/nginx/conf.d/*.conf; +} \ No newline at end of file