From c870b8234cfca50a84678a82ada06923242271aa Mon Sep 17 00:00:00 2001 From: Basil Bruhn Date: Tue, 25 Aug 2026 15:15:34 +0200 Subject: [PATCH] update nginx log format Signed-off-by: Basil Bruhn --- nginx.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 6516663..d261f22 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,8 +17,11 @@ http { add_header Referrer-Policy no-referrer-when-downgrade; # Referrer policy log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for" ' + 'proxy_host="$proxy_host" upstream="$upstream_addr" ' + 'upstream_status="$upstream_status" ' + 'upstream_time="$upstream_response_time"'; access_log /var/log/nginx/access.log main;