Skip to content

Commit 54e83ff

Browse files
authored
fix(gzip): optimize settings
1 parent 8aaed63 commit 54e83ff

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

nginx/nginx.conf

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,19 @@ http {
3232
gzip on;
3333
gzip_http_version 1.0;
3434
gzip_comp_level 2;
35-
gzip_proxied any;
36-
gzip_types text/plain text/css application/javascript text/xml application/xml+rss;
35+
gzip_types
36+
application/atom+xml
37+
application/javascript
38+
application/json
39+
application/rss+xml
40+
application/xml
41+
image/svg+xml
42+
text/css
43+
text/javascript
44+
text/json
45+
text/html
46+
text/plain
47+
text/xml;
3748

3849
client_max_body_size 80M;
3950

0 commit comments

Comments
 (0)