proxy_connect_timeout   <%= scope.lookupvar('nginx::params::nx_proxy_connect_timeout') %>;
proxy_send_timeout      <%= scope.lookupvar('nginx::params::nx_proxy_send_timeout') %>;
proxy_read_timeout      <%= scope.lookupvar('nginx::params::nx_proxy_read_timeout') %>;
<% @proxy_set_header.each do |header| -%>
proxy_set_header        <%= header %>;
<% end %>

proxy_connect_timeout   <%= scope.lookupvar('nginx::params::nx_proxy_connect_timeout') %>;
proxy_send_timeout      <%= scope.lookupvar('nginx::params::nx_proxy_send_timeout') %>;
proxy_read_timeout      <%= scope.lookupvar('nginx::params::nx_proxy_read_timeout') %>;

# Needed for proxy keepalive connection
proxy_http_version      1.1;
proxy_set_header        Connection "";

<% @proxy_set_header.each do |header| -%>
proxy_set_header        <%= header %>;
<% end %>

Make sure nginx proxy will be able to keepalive
Make sure nginx proxy will be able to keepalive
