Skip to content

Commit

Permalink
allow override of proxy_redirect = off
Browse files Browse the repository at this point in the history
  • Loading branch information
eholzbach authored and janorn committed Jun 24, 2014
1 parent 04a3233 commit 1f43c13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/resource/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
# nginx::resource::upstream
# [*proxy_read_timeout*] - Override the default the proxy read timeout value
# of 90 seconds
# [*proxy_redirect*] - Override the default proxy_redirect value of off.
# [*resolver*] - Array: Configures name servers used to resolve
# names of upstream servers into addresses.
# [*fastcgi*] - location of fastcgi (host:port)
Expand Down Expand Up @@ -152,6 +153,7 @@
$ssl_trusted_cert = undef,
$spdy = $nginx::config::spdy,
$proxy = undef,
$proxy_redirect = undef,
$proxy_read_timeout = $nginx::config::proxy_read_timeout,
$proxy_connect_timeout = $nginx::config::proxy_connect_timeout,
$proxy_set_header = [],
Expand Down Expand Up @@ -251,6 +253,7 @@
validate_string($proxy)
}
validate_string($proxy_read_timeout)
validate_string($proxy_redirect)
validate_array($proxy_set_header)
if ($proxy_cache != false) {
validate_string($proxy_cache)
Expand Down Expand Up @@ -411,6 +414,7 @@
location_allow => $location_allow,
location_deny => $location_deny,
proxy => $proxy,
proxy_redirect => $proxy_redirect,
proxy_read_timeout => $proxy_read_timeout,
proxy_connect_timeout => $proxy_connect_timeout,
proxy_cache => $proxy_cache,
Expand Down

0 comments on commit 1f43c13

Please sign in to comment.