-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathnginx.conf
38 lines (32 loc) · 809 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
worker_processes auto;
worker_rlimit_nofile 500000;
events {
use epoll;
worker_connections 512;
}
http {
access_log off;
sendfile on;
client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 8m;
large_client_header_buffers 2 1k;
upstream api {
least_conn;
server api01:8080;
server api02:8080;
keepalive 320;
keepalive_requests 6000;
}
server {
listen 9999; # Lembra da porta 9999 obrigatória?
location / {
proxy_pass http://api;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Connection "";
proxy_set_header Keep-Alive "";
proxy_set_header Proxy-Connection "keep-alive";
}
}
}