commit be3923e05128b0501cd0274b7c14b063c95d2c01 Author: yaroslav Date: Wed Mar 25 10:58:17 2026 +0200 Додати 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