Add default-type as a configurable for default_type

This commit is contained in:
mengqi.wmq 2020-06-21 11:10:51 +08:00
parent 6048e63daa
commit f232a264ab
4 changed files with 18 additions and 1 deletions

View file

@ -279,7 +279,7 @@ http {
{{ buildOpentracing $cfg $servers }}
include /etc/nginx/mime.types;
default_type text/html;
default_type {{ $cfg.DefaultType }};
{{ if $cfg.EnableBrotli }}
brotli on;