From bc023cf98996784d1a119d6293ad20184e754a9a Mon Sep 17 00:00:00 2001 From: Ricardo Pchevuzinske Katz Date: Wed, 1 Nov 2017 16:50:38 -0200 Subject: [PATCH] Adds Brotli support --- docs/user-guide/configmap.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/user-guide/configmap.md b/docs/user-guide/configmap.md index dce83c0e8..a3ec3b4be 100644 --- a/docs/user-guide/configmap.md +++ b/docs/user-guide/configmap.md @@ -114,6 +114,18 @@ Setting at least one code also enables [proxy_intercept_errors](http://nginx.org Example usage: `custom-http-errors: 404,415` +### Other Directives + +#### brotli-level +Sets the Brotli Compression Level that will be used. +*Defaults to* 4 + + +#### brotli-types +Sets the MIME Types that will be compressed on-the-fly by brotli. +*Defaults to* `application/xml+rss application/atom+xml application/javascript application/x-javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/x-component` + + #### enable-modsecurity Enables the modsecurity module for NGINX @@ -314,6 +326,15 @@ Sets the number of unsuccessful attempts to communicate with the [server](http:/ Sets the time during which the specified number of unsuccessful attempts to communicate with the [server](http://nginx.org/en/docs/http/ngx_http_upstream_module.html#upstream) should happen to consider the server unavailable. +#### use-brotli + +Enables or disables compression of HTTP responses using the ["brotli" module](https://github.com/google/ngx_brotli). + +The default mime type list to compress is: `application/xml+rss application/atom+xml application/javascript application/x-javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/x-component`. + +This is *enabled* by default + + #### use-gzip Enables or disables compression of HTTP responses using the ["gzip" module](http://nginx.org/en/docs/http/ngx_http_gzip_module.html).