do not hardcode keepalive for upstream_balancer

This commit is contained in:
Elvin Efendi 2018-03-20 23:20:44 -04:00
parent df00b03a70
commit b212ae5eec
2 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -378,7 +378,9 @@ http {
balancer.call()
}
keepalive 1000;
{{ if (gt $cfg.UpstreamKeepaliveConnections 0) }}
keepalive {{ $cfg.UpstreamKeepaliveConnections }};
{{ end }}
}
{{/* build the maps that will be use to validate the Whitelist */}}