Skip to content

Commit

Permalink
Fix streamhost default logging
Browse files Browse the repository at this point in the history
Current default values will cause Nginx to fail to start if nginx::stream is true.

http://nginx.org/en/docs/stream/ngx_stream_log_module.html#access_log
Format must be defined, which current default configuration doesn't do.
Nginx default is "off", and therefore the module default should be "off" as well.
  • Loading branch information
jaketus authored and kenyon committed Dec 14, 2024
1 parent 071c48d commit 01d1b7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ Data type: `Variant[String, Array[String]]`



Default value: `"${log_dir}/stream-access.log"`
Default value: `'off'`

##### <a name="-nginx--stream_custom_format_log"></a>`stream_custom_format_log`

Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
Stdlib::Filemode $log_mode = $nginx::params::log_mode,
Variant[String, Array[String]] $http_access_log = "${log_dir}/access.log",
Optional[String] $http_format_log = undef,
Variant[String, Array[String]] $stream_access_log = "${log_dir}/stream-access.log",
Variant[String, Array[String]] $stream_access_log = 'off',
Optional[String] $stream_custom_format_log = undef,
Variant[String, Array[String]] $nginx_error_log = "${log_dir}/error.log",
Nginx::ErrorLogSeverity $nginx_error_log_severity = 'error',
Expand Down

0 comments on commit 01d1b7f

Please sign in to comment.