File tree Expand file tree Collapse file tree 1 file changed +36
-3
lines changed Expand file tree Collapse file tree 1 file changed +36
-3
lines changed Original file line number Diff line number Diff line change
1
+ charset utf-8;
2
+
3
+ tcp_nodelay on;
4
+
5
+ gzip on;
6
+ gzip_comp_level 3; # Default value is 1
7
+ gzip_types
8
+ application/atom+xml
9
+ application/javascript
10
+ application/json
11
+ application/ld+json
12
+ application/manifest+json
13
+ application/rss+xml
14
+ application/vnd.geo+json
15
+ application/vnd.ms-fontobject
16
+ application/x-font-ttf
17
+ application/x-javascript
18
+ application/x-web-app-manifest+json
19
+ application/xhtml+xml
20
+ application/xml
21
+ font/opentype
22
+ font/truetype
23
+ image/bmp
24
+ image/svg+xml
25
+ image/x-icon
26
+ text/html
27
+ text/cache-manifest
28
+ text/css
29
+ text/javascript
30
+ text/plain
31
+ text/vcard
32
+ text/vnd.rim.location.xloc
33
+ text/vtt
34
+ text/x-component
35
+ text/x-cross-domain-policy
36
+ text/xml;
1
37
2
38
server {
3
39
listen 80;
@@ -6,9 +42,6 @@ server {
6
42
root /usr/share/nginx/html;
7
43
index index.html;
8
44
9
- gzip on;
10
- gzip_types text/plain text/xml text/css application/javascript application/json image/svg+xml;
11
-
12
45
location / {
13
46
include /etc/nginx/snippets/proxy-params.conf;
14
47
You can’t perform that action at this time.
0 commit comments