Skip to content

Commit d7e23bd

Browse files
committed
chore(docker): more gzipped types
1 parent eac77cf commit d7e23bd

File tree

1 file changed

+36
-3
lines changed

1 file changed

+36
-3
lines changed

docker/nginx/templates/default.conf.template

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
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;
137

238
server {
339
listen 80;
@@ -6,9 +42,6 @@ server {
642
root /usr/share/nginx/html;
743
index index.html;
844

9-
gzip on;
10-
gzip_types text/plain text/xml text/css application/javascript application/json image/svg+xml;
11-
1245
location / {
1346
include /etc/nginx/snippets/proxy-params.conf;
1447

0 commit comments

Comments
 (0)