-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
43 lines (36 loc) · 919 Bytes
/
nginx.conf
File metadata and controls
43 lines (36 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
worker_processes 1;
worker_rlimit_nofile 16384;
events {
use epoll;
worker_connections 4096;
multi_accept on;
accept_mutex off;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
error_log off;
access_log off;
keepalive_timeout 60s;
keepalive_requests 100000;
upstream backend_pool {
server backend1:9999 max_fails=0;
server backend2:9999 max_fails=0;
keepalive 128;
keepalive_requests 100000;
}
server {
listen 9999 backlog=16384 reuseport;
location / {
proxy_pass http://backend_pool;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_connect_timeout 200ms;
proxy_send_timeout 2s;
proxy_read_timeout 2s;
proxy_buffering off;
proxy_request_buffering off;
}
}
}