From 73cca1dbfba6b93aeac1fe830e14ee7de1dbdb38 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 7 Mar 2023 11:00:08 -0500 Subject: [PATCH] enable minimal stderr logging --- nginx/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index b471316..311fedf 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -3,8 +3,8 @@ load_module modules/ngx_http_brotli_static_module.so; error_log syslog:server=unix:/dev/log,nohostname; -# work around nginx still logging to stderr when using syslog error_log -error_log /dev/null; +# leave stderr open but minimize duplicate logging to it +error_log stderr emerg; worker_processes auto; worker_rlimit_nofile 16384;