forked from zanfranceschi/rinha-de-backend-2024-q1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
41 lines (34 loc) · 780 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_rlimit_nofile 500000;
events {
worker_connections 20000;
multi_accept on;
use epoll;
}
http {
access_log off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
types_hash_max_size 2048;
server_tokens off;
upstream api {
server rinha-api-1:8080;
server rinha-api-2:8080;
keepalive 64;
}
server {
listen 9999 reuseport;
location / {
proxy_pass http://api;
}
client_body_timeout 10s;
client_max_body_size 20m;
keepalive_timeout 60s;
keepalive_requests 1000;
send_timeout 30s;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
}
}