'brotli_comp_level 6' tends to be the most optimal and commonly used level. 'brotli_buffers' has been deprecated: https://github.com/google/ngx_brotli#brotli_buffers
47 lines
844 B
Plaintext
47 lines
844 B
Plaintext
##
|
|
# Brotli Settings
|
|
##
|
|
|
|
brotli on;
|
|
brotli_static on;
|
|
brotli_comp_level 6;
|
|
brotli_types
|
|
application/atom+xml
|
|
application/geo+json
|
|
application/javascript
|
|
application/json
|
|
application/ld+json
|
|
application/manifest+json
|
|
application/rdf+xml
|
|
application/rss+xml
|
|
application/vnd.ms-fontobject
|
|
application/wasm
|
|
application/x-font-opentype
|
|
application/x-font-truetype
|
|
application/x-font-ttf
|
|
application/x-javascript
|
|
application/x-web-app-manifest+json
|
|
application/xhtml+xml
|
|
application/xml
|
|
application/xml+rss
|
|
font/eot
|
|
font/opentype
|
|
font/otf
|
|
image/bmp
|
|
image/svg+xml
|
|
image/vnd.microsoft.icon
|
|
image/x-icon
|
|
image/x-win-bitmap
|
|
text/cache-manifest
|
|
text/calendar
|
|
text/css
|
|
text/javascript
|
|
text/markdown
|
|
text/plain
|
|
text/vcard
|
|
text/vnd.rim.location.xloc
|
|
text/vtt
|
|
text/x-component
|
|
text/x-cross-domain-policy
|
|
text/xml;
|