improved logging with rsyslog

This commit is contained in:
bunkerity
2020-10-07 17:10:58 +02:00
parent 6e3c2ddcc2
commit aaef370079
10 changed files with 49 additions and 21 deletions

View File

@@ -12,9 +12,6 @@ worker_processes auto;
# faster regexp
pcre_jit on;
# display warnings and errors on stderr
error_log stderr warn;
# config files for dynamic modules
include /etc/nginx/modules/*.conf;
@@ -64,9 +61,9 @@ http {
# get real IP address if behind a reverse proxy
%PROXY_REAL_IP%
# write logs to local syslogd
access_log syslog:server=unix:/dev/log,nohostname,facility=local0 combined;
error_log syslog:server=unix:/dev/log,nohostname,facility=local0,severity=warn;
# write logs to local syslog
access_log syslog:server=unix:/dev/log,nohostname,facility=local0,severity=notice combined;
error_log syslog:server=unix:/dev/log,nohostname,facility=local0 warn;
# lua path
lua_package_path "/usr/local/lib/lua/?.lua;;";