-
Notifications
You must be signed in to change notification settings - Fork 282
/
nginx.conf
52 lines (50 loc) · 1.19 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
map $sent_http_content_type $expires {
default off;
text/html 1h;
text/css max;
application/javascript 10m;
~image/ max;
}
server {
listen 3000;
server_name localhost;
absolute_redirect off;
expires $expires;
gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_types
application/atom+xml
application/javascript
application/json
application/ld+json
application/manifest+json
application/rss+xml
application/vnd.geo+json
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/bmp
image/svg+xml
image/x-icon
text/cache-manifest
text/css
text/plain
text/vcard
text/vnd.rim.location.xloc
text/vtt
text/x-component
text/x-cross-domain-policy;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html?/$request_uri;
sendfile on;
sendfile_max_chunk 1m;
tcp_nopush on;
gzip_static on;
}
}