Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add proxy_http_version
  • Loading branch information
raoulbhatia committed Feb 27, 2015
commit 018247cf48f2167b4f09191d08e50332064572df
1 change: 1 addition & 0 deletions manifests/resource/location.pp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
$proxy_read_timeout = '90',
$proxy_set_header = ['Host $host', 'X-Real-IP $remote_addr', 'X-Forwarded-For $proxy_add_x_forwarded_for', 'X-Forwarded-Proto $scheme' ],
$proxy_redirect = undef,
$proxy_http_version = undef,
$ssl = false,
$ssl_only = false,
$option = undef,
Expand Down
2 changes: 2 additions & 0 deletions manifests/resource/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
$proxy = undef,
$proxy_read_timeout = '90',
$proxy_set_header = undef,
$proxy_http_version = undef,
$proxy_redirect = undef,
$redirect = undef,
$index_files = ['index.html', 'index.htm', 'index.php'],
Expand Down Expand Up @@ -150,6 +151,7 @@
proxy_read_timeout => $proxy_read_timeout,
proxy_set_header => $proxy_set_header,
proxy_redirect => $proxy_redirect,
proxy_http_version => $proxy_http_version,
redirect => $redirect,
www_root => $www_root,
create_www_root => $create_www_root,
Expand Down
1 change: 1 addition & 0 deletions templates/conf.d/proxy.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ proxy_buffers <%= scope.lookupvar('nginx::params::nx_proxy_buffers') %
<% scope.lookupvar('nginx::params::nx_proxy_set_header').each do |header| %>
proxy_set_header <%= header %>;
<% end %>
<% unless @nx_proxy_http_version.nil? || @nx_proxy_http_version.empty? -%>proxy_http_version <%= scope.lookupvar('nginx::params::nx_proxy_http_version') %>;<% end %>
3 changes: 3 additions & 0 deletions templates/vhost/vhost_location_proxy.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<% unless @proxy_redirect.nil? || @proxy_redirect.empty? -%>
proxy_redirect <%= @proxy_redirect %>;
<% end -%>
<% unless @proxy_http_version.nil? || @proxy_http_version.empty? -%>
proxy_http_version <%= @proxy_http_version %>;
<% end %>
<% unless @proxy_set_header.nil? || @proxy_set_header.empty? -%>
<% @proxy_set_header.each do |header| -%>
proxy_set_header <%= header %>;
Expand Down