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 a37119c
Showing 1 changed file with 1 addition and 1 deletion.
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 a37119c

Please sign in to comment.