chore(monitoring): include server port in logs

This commit is contained in:
arcnmx 2024-06-25 10:43:15 -07:00
parent 7e82a12236
commit aff6183ac2
3 changed files with 14 additions and 4 deletions

View file

@ -38,7 +38,9 @@ in {
map $scheme $hsts_header {
https "max-age=31536000; includeSubdomains; preload";
}
log_format combined_host '$remote_addr@$scheme - $remote_user@$host [$time_local]'
log_format combined_host '$remote_addr@$scheme'
' - $remote_user@$host@$server_name:$server_port'
' [$time_local]'
' "$request" $status $body_bytes_sent'
' "$http_referer" "$http_user_agent"';
'';