Update nginx.tmpl
Set proxy header "Connection: keep-alive" if upstream-keepalive-connections greater then 0.
This commit is contained in:
parent
dcf4a4595e
commit
9a21482e9f
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,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 {
|
||||
|
|
Loading…
Reference in a new issue