Skip to content

Commit

Permalink
Add sample configuration to README. (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
SCG82 committed Apr 23, 2020
1 parent 19954a2 commit 25f86f0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -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)

Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit 25f86f0

Please sign in to comment.