Skip to content

Commit c768420

Browse files
committed
perf: enabling gzip
1 parent 95070a6 commit c768420

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

containers/nginx/config/templates/default.conf.template

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@ server {
1313

1414
charset utf-8;
1515

16+
gzip on;
17+
gzip_vary on;
18+
gzip_proxied any;
19+
gzip_comp_level 6;
20+
gzip_min_length 256;
21+
gzip_types
22+
text/plain
23+
text/css
24+
text/xml
25+
text/javascript
26+
application/javascript
27+
application/json
28+
application/xml
29+
application/xml+rss
30+
image/svg+xml;
31+
1632
location / {
1733
try_files $uri $uri/ /index.php?$query_string;
1834
}

0 commit comments

Comments
 (0)