diff --git a/README.md b/README.md index 0bbea7b..80428e9 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ ngx_brotli is a set of two nginx modules: - [`brotli_min_length`](#brotli_min_length) - [Variables](#variables) - [`$brotli_ratio`](#brotli_ratio) +- [Sample configuration](#sample-configuration) - [Contributing](#contributing) - [License](#license) @@ -130,6 +131,19 @@ The length is determined only from the `Content-Length` response header field. Achieved compression ratio, computed as the ratio between the original and compressed response sizes. +## Sample configuration + +``` +brotli on; +brotli_comp_level 6; +brotli_static on; +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; +``` + ## Contributing See [Contributing](CONTRIBUTING.md).