update nginx log format

Signed-off-by: Basil Bruhn <basil.bruhn@psi.ch>
This commit is contained in:
bruhn_b committed 2026-08-25 15:15:34 +02:00
1 parent d79815c100
commit c870b8234c
1 file changed
+5 -2
+5 -2
View File
@@ -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;