Skip to content

Commit 1599bff

Browse files
committed
Add ngx_http_gzip_module configuration
http://nginx.org/en/docs/http/ngx_http_gzip_module.html
1 parent b497e0c commit 1599bff

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

config/http.conf

+31
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,37 @@ http {
99
client_max_body_size 400m;
1010
client_body_timeout 300s;
1111

12+
gzip on;
13+
gzip_comp_level 5;
14+
gzip_min_length 256;
15+
gzip_proxied any;
16+
gzip_vary on;
17+
gzip_types
18+
application/atom+xml
19+
application/javascript
20+
application/json
21+
application/ld+json
22+
application/manifest+json
23+
application/rss+xml
24+
application/vnd.geo+json
25+
application/vnd.ms-fontobject
26+
application/x-font-ttf
27+
application/x-web-app-manifest+json
28+
application/xhtml+xml
29+
application/xml
30+
font/opentype
31+
image/bmp
32+
image/svg+xml
33+
image/x-icon
34+
text/cache-manifest
35+
text/css
36+
text/plain
37+
text/vcard
38+
text/vnd.rim.location.xloc
39+
text/vtt
40+
text/x-component
41+
text/x-cross-domain-policy;
42+
1243
proxy_http_version 1.1;
1344
proxy_set_header Connection "";
1445
proxy_set_header Host $host;

0 commit comments

Comments
 (0)