summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2023-03-07 10:52:49 -0500
committerDaniel Micay <danielmicay@gmail.com>2023-03-07 10:56:36 -0500
commitea521a790b4d2dfdeb442c48ca88482550e88642 (patch)
treea8421d6fd285cdbbe0f38ba9eb90d94631f56a35
parentc82d81e018d280f5087197931e03ec94289f1e5b (diff)
enable minimal stderr logging
-rw-r--r--nginx/nginx.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 890dff3a..cb001416 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;