Simplify nginx configuration by removing unused directives and reducing complexity

This commit is contained in:
Jose Eduardo 2025-08-10 21:07:16 -04:00
parent 2bb71ef5a1
commit f0c7df6f6e

View File

@ -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 {