Skip to content

Commit

Permalink
debug_connections plural; cleaner default
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilnius Ramanauskas committed Aug 29, 2020
1 parent 8d3cac2 commit 32c3a90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
$lingering_timeout = $nginx::lingering_timeout
$etag = $nginx::etag
$events_use = $nginx::events_use
$debug_connection = $nginx::debug_connection
$debug_connections = $nginx::debug_connections
$fastcgi_cache_inactive = $nginx::fastcgi_cache_inactive
$fastcgi_cache_key = $nginx::fastcgi_cache_key
$fastcgi_cache_keys_zone = $nginx::fastcgi_cache_keys_zone
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
$lingering_timeout = '5s',
Optional[Enum['on', 'off']] $etag = undef,
Optional[String] $events_use = undef,
Optional[Array[Nginx::DebugConnection]] $debug_connection = undef,
Array[Nginx::DebugConnection] $debug_connections = [],
String $fastcgi_cache_inactive = '20m',
Optional[String] $fastcgi_cache_key = undef,
String $fastcgi_cache_keys_zone = 'd3:100m',
Expand Down
5 changes: 2 additions & 3 deletions templates/conf.d/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ events {
<%- if @events_use -%>
use <%= @events_use %>;
<%- end -%>
<% if @debug_connection -%>
<%- @debug_connection.each do |address| -%>
<%- @debug_connections.each do |address| -%>
debug_connection <%= address %>;
<%- end -%>
<%- end -%>
<% end -%>
}

Expand Down

0 comments on commit 32c3a90

Please sign in to comment.