Adds Brotli support
This commit is contained in:
parent
015b4a8f34
commit
fddcfd0340
4 changed files with 49 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue