diff --git a/nginx.conf b/nginx.conf index ffbe308..f4d89b3 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,35 +1,13 @@ -worker_processes auto; -worker_rlimit_nofile 65535; - -events { - worker_connections 4096; - use epoll; - multi_accept on; - accept_mutex off; -} +events {} http { access_log off; error_log /dev/null crit; - sendfile on; - tcp_nopush on; - tcp_nodelay on; - - keepalive_timeout 65; - keepalive_requests 1000000; - - client_max_body_size 1k; - client_body_timeout 1s; - client_header_timeout 1s; - upstream backend_pool { least_conn; - server api1:9999 max_fails=1 fail_timeout=1s weight=1; - server api2:9999 max_fails=1 fail_timeout=1s weight=1; - keepalive 3072; - keepalive_requests 100000; - keepalive_timeout 120s; + server api1:9999; + server api2:9999; } server {