-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
38 lines (36 loc) · 920 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
server {
listen 80;
include /etc/nginx/mime.types;
gzip on;
gzip_static on;
gzip_proxied any;
gzip_types application/atom+xml
application/geo+json
application/javascript
application/x-javascript
application/json
application/ld+json
application/manifest+json
application/rdf+xml
application/rss+xml
application/xhtml+xml
application/xml
font/eot
font/otf
font/ttf
image/svg+xml
text/css
text/javascript
text/plain
text/xml;
gzip_comp_level 5;
gzip_disable "MSIE [1-6]\.";
gzip_min_length 1024;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_vary on;
location / {
root /usr/share/nginx/html/;
try_files $uri $uri/ /index.html;
}
}