-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
63 lines (43 loc) · 1.08 KB
/
nginx.conf
File metadata and controls
63 lines (43 loc) · 1.08 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
worker_processes 7;
events {
use epoll;
worker_connections 6000;
multi_accept on;
accept_mutex off;
}
http {
sendfile on;
tcp_nopush off;
tcp_nodelay on;
keepalive_timeout 15;
keepalive_requests 100;
client_header_timeout 5s;
client_body_timeout 5s;
send_timeout 5s;
upstream backend_cluster {
least_conn;
server first-backend:8080;
server second-backend:8080;
keepalive 2000;
keepalive_requests 31000;
keepalive_timeout 65s;
}
server {
listen 80 default_server reuseport;
access_log off;
error_log /dev/null crit;
server_tokens off;
location / {
proxy_pass http://backend_cluster;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_connect_timeout 1s;
proxy_send_timeout 2s;
proxy_read_timeout 2s;
proxy_pass_request_headers on;
proxy_set_header Accept-Encoding "";
}
}
reset_timedout_connection on;
gzip off;
}