Skip to content

Commit

Permalink
PMM-12530 send nginx logs to /dev/std{err,out}
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Dec 18, 2023
1 parent b0b32b1 commit 03d2f50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

daemon off;

error_log stderr info;
error_log /dev/stderr info;
# error_log stderr debug;

events {
Expand Down
4 changes: 2 additions & 2 deletions build/ansible/roles/nginx/files/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ worker_processes 2;

daemon off;

error_log /srv/logs/nginx.log warn;
error_log /dev/stderr warn;
pid /run/nginx.pid;

events {
Expand All @@ -23,7 +23,7 @@ http {
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /srv/logs/nginx.log main;
access_log /dev/stdout main;

sendfile on;
gzip on;
Expand Down

0 comments on commit 03d2f50

Please sign in to comment.