-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathnginx.conf
39 lines (32 loc) · 843 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
# worker_processes auto; ## Default: 1
events {
worker_connections 300;
}
http {
access_log off;# para aumentar a E/S no HDD, podemos desabilitar os logs de acesso
error_log /dev/null emerg;
sendfile on ; # mais rápido que read() + write()
keepalive_timeout 1d;
send_timeout 1d;
client_body_timeout 1d;
client_header_timeout 1d;
proxy_connect_timeout 1d;
proxy_read_timeout 1d;
proxy_send_timeout 1d;
fastcgi_connect_timeout 1d;
fastcgi_read_timeout 1d;
fastcgi_send_timeout 1d;
memcached_connect_timeout 1d;
memcached_read_timeout 1d;
memcached_send_timeout 1d;
upstream api {
server api-01:3001;
server api-02:3001;
}
server {
listen 9999;
location / {
proxy_pass http://api;
}
}
}