generated from bing/readnotes
feat 添加nginx br压缩
This commit is contained in:
parent
cae7d431f0
commit
e06605cbf2
|
@ -52,3 +52,13 @@ load_module modules/extend/ngx_http_brotli_static_module.so;
|
|||
```
|
||||
|
||||
配置必须位于 `event {}` 与 `http {}`之前
|
||||
|
||||
开启br压缩
|
||||
|
||||
```conf
|
||||
brotli on;
|
||||
brotli_comp_level 6;
|
||||
brotli_buffers 16 8k;
|
||||
brotli_min_length 20;
|
||||
brotli_types *; #*表示压缩所有资源,也可以指定资源类型
|
||||
```
|
Loading…
Reference in New Issue