Skip to content

Commit

Permalink
Merge pull request voxpupuli#282 from genehand/master
Browse files Browse the repository at this point in the history
Make proxy_redirect configurable
  • Loading branch information
James Fryman committed Apr 6, 2014
2 parents f6cc144 + 59c4d11 commit a62ec20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
$gzip = $nginx::params::nx_gzip,
$conf_template = $nginx::params::nx_conf_template,
$proxy_conf_template = $nginx::params::nx_proxy_conf_template,
$proxy_redirect = $nginx::params::nx_proxy_redirect,
) inherits nginx::params {

File {
Expand Down
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
$gzip = $nginx::params::nx_gzip,
$conf_template = $nginx::params::nx_conf_template,
$proxy_conf_template = $nginx::params::nx_proxy_conf_template,
$proxy_redirect = $nginx::params::nx_proxy_redirect,
$nginx_vhosts = {},
$nginx_upstreams = {},
$nginx_locations = {},
Expand Down Expand Up @@ -149,6 +150,7 @@
gzip => $gzip,
conf_template => $conf_template,
proxy_conf_template => $proxy_conf_template,
proxy_redirect => $proxy_redirect,
require => Class['nginx::package'],
notify => Class['nginx::service'],
}
Expand Down
2 changes: 1 addition & 1 deletion templates/conf.d/proxy.conf.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
proxy_redirect <%= scope.lookupvar('nginx::params::nx_proxy_redirect') %>;
proxy_redirect <%= @proxy_redirect %>;
client_max_body_size <%= @client_max_body_size %>;
client_body_buffer_size <%= scope.lookupvar('nginx::params::nx_client_body_buffer_size') %>;
proxy_connect_timeout <%= scope.lookupvar('nginx::params::nx_proxy_connect_timeout') %>;
Expand Down

0 comments on commit a62ec20

Please sign in to comment.