Skip to content

Commit 91b3903

Browse files
jaketusTheMeier
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 8a949a0 commit 91b3903

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ Data type: `Variant[String, Array[String]]`
502502

503503

504504

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

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

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
Stdlib::Filemode $log_mode = $nginx::params::log_mode,
238238
Variant[String, Array[String]] $http_access_log = "${log_dir}/access.log",
239239
Optional[String] $http_format_log = undef,
240-
Variant[String, Array[String]] $stream_access_log = "${log_dir}/stream-access.log",
240+
Variant[String, Array[String]] $stream_access_log = 'off',
241241
Optional[String] $stream_custom_format_log = undef,
242242
Variant[String, Array[String]] $nginx_error_log = "${log_dir}/error.log",
243243
Nginx::ErrorLogSeverity $nginx_error_log_severity = 'error',

0 commit comments

Comments
 (0)