-
Notifications
You must be signed in to change notification settings - Fork 925
/
nginx.conf
41 lines (34 loc) · 910 Bytes
/
nginx.conf
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
worker_processes 4;
worker_rlimit_nofile 65536;
events {
use epoll;
worker_connections 16384;
}
http {
gzip on;
gzip_vary on;
gzip_comp_level 9;
gzip_min_length 500;
gzip_proxied any;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
client_body_timeout 32;
client_header_timeout 32;
send_timeout 120;
client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 8m;
large_client_header_buffers 2 1k;
upstream webapis {
zone upstreams 64K;
server webapi1:8080 max_fails=1 fail_timeout=2s;
server webapi2:8080 max_fails=1 fail_timeout=2s;
keepalive 4;
}
server {
listen 9999;
location / {
proxy_pass http://webapis;
proxy_buffering on;
}
}
}