Merge pull request #1627 from estaleiro/brotli

Add brotli support
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-11-01 17:49:11 -03:00 committed by GitHub
commit dc3225e5ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;