Skip to content

Commit 01d1b7f

Browse files
jaketuskenyon
authored andcommitted
Fix streamhost default logging
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.
1 parent 071c48d commit 01d1b7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

REFERENCE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ Data type: `Variant[String, Array[String]]`
491491

492492

493493

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

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

manifests/init.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
Stdlib::Filemode $log_mode = $nginx::params::log_mode,
6666
Variant[String, Array[String]] $http_access_log = "${log_dir}/access.log",
6767
Optional[String] $http_format_log = undef,
68-
Variant[String, Array[String]] $stream_access_log = "${log_dir}/stream-access.log",
68+
Variant[String, Array[String]] $stream_access_log = 'off',
6969
Optional[String] $stream_custom_format_log = undef,
7070
Variant[String, Array[String]] $nginx_error_log = "${log_dir}/error.log",
7171
Nginx::ErrorLogSeverity $nginx_error_log_severity = 'error',

0 commit comments

Comments
 (0)