- load_module modules/ngx_http_brotli_filter_module.so;
- load_module modules/ngx_http_brotli_static_module.so;
- http {
- ....
- brotli on;
- brotli_comp_level 4;
- brotli_types application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype application/x-font-ttf application/x-javascript application/xhtml+xml application/xml font/eot font/opentype font/otf font/truetype image/svg+xml image/vnd.microsoft.icon image/x-icon image/x-win-bitmap text/css text/javascript text/plain text/xml;
- .....
- }
Raw Paste