feat 添加nginx br压缩

This commit is contained in:
bing 2022-02-09 21:05:22 +08:00
parent cae7d431f0
commit e06605cbf2
1 changed files with 11 additions and 1 deletions

View File

@ -51,4 +51,14 @@ load_module modules/extend/ngx_http_brotli_static_module.so;
``` ```
配置必须位于 `event {}``http {}`之前 配置必须位于 `event {}``http {}`之前
开启br压缩
```conf
brotli on;
brotli_comp_level 6;
brotli_buffers 16 8k;
brotli_min_length 20;
brotli_types *; #*表示压缩所有资源,也可以指定资源类型
```