diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index d0b66ff63..07cd73d9a 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -64,6 +64,14 @@ http gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; + brotli on; + brotli_min_length 256; + brotli_buffers 32 8k; + brotli_comp_level 6; + brotli_window 16m; + brotli_static on; + brotli_types text/plain text/css text/xml text/javascript text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml application/atom+xml application/vnd.ms-fontobject application/x-font-ttf application/x-font-opentype application/x-font-truetype font/tpl font/opentype font/otf font/ttf image/svg+xml image/x-icon image/vnd.microsoft.icon application/wasm application/manifest+json; + limit_conn_zone $binary_remote_addr zone=perip:10m; limit_conn_zone $server_name zone=perserver:10m;