Simplify nginx configuration by removing unused directives and reducing complexity
This commit is contained in:
parent
2bb71ef5a1
commit
f0c7df6f6e
28
nginx.conf
28
nginx.conf
@ -1,35 +1,13 @@
|
|||||||
worker_processes auto;
|
events {}
|
||||||
worker_rlimit_nofile 65535;
|
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 4096;
|
|
||||||
use epoll;
|
|
||||||
multi_accept on;
|
|
||||||
accept_mutex off;
|
|
||||||
}
|
|
||||||
|
|
||||||
http {
|
http {
|
||||||
access_log off;
|
access_log off;
|
||||||
error_log /dev/null crit;
|
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 {
|
upstream backend_pool {
|
||||||
least_conn;
|
least_conn;
|
||||||
server api1:9999 max_fails=1 fail_timeout=1s weight=1;
|
server api1:9999;
|
||||||
server api2:9999 max_fails=1 fail_timeout=1s weight=1;
|
server api2:9999;
|
||||||
keepalive 3072;
|
|
||||||
keepalive_requests 100000;
|
|
||||||
keepalive_timeout 120s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user