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 0398c410e6
commit 634959fd79
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 */}}