chore: configure syslog for web servers

This commit is contained in:
tcely
2026-05-16 07:13:25 -04:00
parent f53a70baca
commit 0b3be91894
4 changed files with 9 additions and 4 deletions

View File

@@ -61,8 +61,10 @@ http {
# Logging
log_format host '$remote_addr - $remote_user [$time_local] "[$host] $request" $status $bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"';
access_log /dev/stdout;
error_log stderr;
##access_log /dev/stdout;
access_log syslog:server=unix:/dev/log,facility=local1,nohostname;
error_log syslog:server=unix:/dev/log,facility=local1,nohostname info;
error_log stderr error;
# GZIP
gzip on;