do not hardcode keepalive for upstream_balancer (#2227)

This commit is contained in:
Elvin Efendi 2018-03-20 23:42:22 -04:00 committed by Manuel Alejandro de Brito Fontes
parent 88cb266a74
commit 1a32a4c1d6
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() balancer.call()
} }
keepalive 1000; {{ if (gt $cfg.UpstreamKeepaliveConnections 0) }}
keepalive {{ $cfg.UpstreamKeepaliveConnections }};
{{ end }}
} }
{{/* build the maps that will be use to validate the Whitelist */}} {{/* build the maps that will be use to validate the Whitelist */}}