Add brotli
This commit is contained in:
@ -2,6 +2,7 @@ worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
load_module /usr/lib/nginx/modules/ngx_http_brotli_filter_module.so;
|
||||
load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so;
|
||||
|
||||
pcre_jit on;
|
||||
@ -37,6 +38,11 @@ http {
|
||||
gzip_comp_level 3;
|
||||
gzip_min_length 1024;
|
||||
|
||||
brotli on;
|
||||
brotli_types *;
|
||||
brotli_comp_level 7;
|
||||
brotli_min_length 1024;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
include /etc/nginx/http.d/*.conf;
|
||||
|
Reference in New Issue
Block a user