-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
43 lines (41 loc) · 1.07 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
server {
listen 80;
# send headers in one peace
tcp_nopush on;
# allow the server to close connection on non responding client, this will free up memory
reset_timedout_connection on;
# request timed out -- default 60
client_body_timeout 20;
# if client stop responding, free up memory -- default 60
send_timeout 20;
# server will close connection after this time -- default 75
keepalive_timeout 40;
# reduce the data that needs to be sent over network
gzip on;
gzip_min_length 200;
gzip_types
text/plain
text/css
text/xml
text/javascript
application/javascript
application/x-javascript
application/json
application/x-web-app-manifest+json
application/xml
application/xhtml+xml
application/x-font-ttf
application/octet-stream
font/opentype
image/x-icon
image/svg+xml;
gzip_proxied expired no-cache no-store private auth;
gzip_http_version 1.1;
gzip_comp_level 5;
gzip_vary on;
gzip_disable msie6;
location / {
alias /usr/share/nginx/html/;
try_files $uri $uri/ /index.html;
}
}