Skip to content

Commit f620653

Browse files
committed
feat: enhance gzip configuration in nginx for improved performance
1 parent 2d03669 commit f620653

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nginx.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ http {
1919
sendfile on;
2020
#tcp_nopush on;
2121
keepalive_timeout 65;
22+
2223
gzip on;
24+
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
25+
gzip_vary on;
26+
gzip_min_length 1024;
27+
gzip_proxied any;
28+
gzip_comp_level 6;
29+
gzip_static on;
30+
2331
include /etc/nginx/conf.d/*.conf;
2432
}

0 commit comments

Comments
 (0)