Skip to content

Commit 8d2bf84

Browse files
authored
feat: enable brotli compression
Increased gzip compression level and added Brotli compression settings.
1 parent 54e83ff commit 8d2bf84

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

nginx/nginx.conf

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ http {
3030
keepalive_timeout 65;
3131

3232
gzip on;
33-
gzip_http_version 1.0;
34-
gzip_comp_level 2;
33+
gzip_comp_level 4;
34+
gzip_min_length 1024;
3535
gzip_types
3636
application/atom+xml
3737
application/javascript
@@ -46,6 +46,23 @@ http {
4646
text/plain
4747
text/xml;
4848

49+
brotli on;
50+
brotli_comp_level 4;
51+
brotli_min_length 1024;
52+
brotli_types
53+
application/atom+xml
54+
application/javascript
55+
application/json
56+
application/rss+xml
57+
application/xml
58+
image/svg+xml
59+
text/css
60+
text/javascript
61+
text/json
62+
text/html
63+
text/plain
64+
text/xml;
65+
4966
client_max_body_size 80M;
5067

5168
absolute_redirect off;

0 commit comments

Comments
 (0)