Adds Brotli support

This commit is contained in:
Ricardo Pchevuzinske Katz 2017-10-30 17:32:47 -02:00
parent 015b4a8f34
commit fddcfd0340
4 changed files with 49 additions and 0 deletions

View file

@ -112,6 +112,13 @@ http {
include /etc/nginx/mime.types;
default_type text/html;
{{ if $cfg.UseBrotli }}
brotli on;
brotli_comp_level {{ $cfg.BrotliLevel }};
brotli_types {{ $cfg.BrotliTypes }};
{{ end }}
{{ if $cfg.UseGzip }}
gzip on;
gzip_comp_level 5;