-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathnginx.conf
45 lines (36 loc) · 913 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
42
43
44
45
worker_processes auto;
worker_rlimit_nofile 80000;
events {
use epoll;
worker_connections 1000;
multi_accept on;
}
http {
# Disable logging
access_log off;
error_log /dev/null emerg;
# Enable logging
# error_log stderr warn;
# access_log /dev/stdout;
sendfile on;
upstream api {
server unix:/dev/shm/api01.sock;
server unix:/dev/shm/api02.sock;
keepalive 1000;
keepalive_requests 100000000;
keepalive_timeout 1000000;
}
server {
listen 9999;
location / {
proxy_buffering off;
proxy_set_header Connection "";
proxy_set_header Content-Type "";
proxy_set_header Accept "";
proxy_set_header Host "";
proxy_set_header User-Agent "";
proxy_http_version 1.1;
proxy_pass http://api;
}
}
}