-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathnginx.conf
executable file
·53 lines (39 loc) · 1.03 KB
/
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
46
47
48
49
50
51
52
53
daemon off;
worker_processes auto;
worker_rlimit_nofile 65000;
events {
use epoll;
accept_mutex on;
worker_connections 4000;
}
http {
gzip on;
gzip_comp_level 5;
gzip_min_length 512;
gzip_proxied any;
gzip_types text/html application/json;
server_tokens off;
log_format logstash '$http_host $remote_addr [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $request_time $upstream_response_time';
access_log off;
error_log /dev/stderr;
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
#Must read the body in 5 seconds.
client_body_timeout 5;
keepalive_timeout 5;
# send headers in one peace, its better then sending them one by one
tcp_nopush on;
# don't buffer data sent, good for small data bursts in real time
tcp_nodelay on;
client_max_body_size 1M;
server {
listen 80;
server_name _;
root /app/build;
location /__ping { return 200 "OK"; }
location / {
try_files $uri /index.html;
}
}
}