Skip to content

Commit

Permalink
Log http redirects from nginx
Browse files Browse the repository at this point in the history
Gathering information to diagnose 5xx pages

Signed-off-by: Samuel Giddins <segiddins@segiddins.me>
  • Loading branch information
segiddins committed Jan 12, 2025
1 parent b093b95 commit 8908148
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/deploy/nginx-configmap.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ data:

}
logging: |
log_format json '{'
log_format json escape=json '{'
'"host": "${HOSTNAME}", '
'"@timestamp": "$time_iso8601", '
'"service": "rubygems.org", '
Expand All @@ -161,6 +161,7 @@ data:
'"args": "$args", '
'"dest_host": "$http_host", '
'"content_type": "$sent_http_content_type", '
'"location": "$sent_http_location", '
'"protocol": "$server_protocol", '
'"referer": "$http_referer", '
'"useragent": "$http_user_agent", '
Expand Down

0 comments on commit 8908148

Please sign in to comment.