This commit is contained in:
Anton Fayzrahmanov 2018-01-30 04:29:27 +00:00 committed by GitHub
commit 968c02a213

View file

@ -181,7 +181,7 @@ http {
# Retain the default nginx handling of requests without a "Connection" header
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
'' {{ if (gt $cfg.UpstreamKeepaliveConnections 0) }}keep-alive{{ else }}close{{ end }};
}
map {{ buildForwardedFor $cfg.ForwardedForHeader }} $the_real_ip {