Allow gzip compress level to be controlled via ConfigMap

This commit is contained in:
Jason Stangroome 2018-07-09 10:30:59 +10:00
parent c9ca9ffeaa
commit 8e06afbb45
4 changed files with 12 additions and 1 deletions

View file

@ -169,7 +169,7 @@ http {
{{ if $cfg.UseGzip }}
gzip on;
gzip_comp_level 5;
gzip_comp_level {{ $cfg.GzipLevel }};
gzip_http_version 1.1;
gzip_min_length 256;
gzip_types {{ $cfg.GzipTypes }};