Skip to content

Commit

Permalink
Update Nginx log format to v2
Browse files Browse the repository at this point in the history
Need to bump to `v2` because another mistake was make in the existing
deployment for `v1` causing conflicts with this definition, and we also
need to correct ports to be integers instead of strings.
  • Loading branch information
portante committed Apr 10, 2023
1 parent e0dc06d commit 6a5b263
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/lib/config/nginx.conf
Expand Up @@ -17,7 +17,7 @@ events {
}

http {
log_format main escape=json '@cee:{"nginx":{"v1":{'
log_format main escape=json '@cee:{"nginx":{"v2":{'
'"body_bytes_sent": $body_bytes_sent, '
'"bytes_sent": $bytes_sent, '
'"connection": $connection, '
Expand All @@ -31,7 +31,7 @@ http {
'"pipe": "$pipe", '
'"remote": {'
'"addr": "$remote_addr", '
'"port": "$remote_port", '
'"port": $remote_port, '
'"user": "$remote_user"'
'}, '
'"request": {'
Expand All @@ -45,7 +45,7 @@ http {
'"server": {'
'"name": "$server_name", '
'"host": "$host", '
'"port": "$server_port"'
'"port": $server_port'
'}, '
'"status": $status, '
'"time": "$time_iso8601", '
Expand Down

0 comments on commit 6a5b263

Please sign in to comment.