Log real client IPs via Fly-Client-IP header #130

Merged
eblume merged 2 commits from fix/real-client-ip-logging into main 2026-02-09 11:02:07 -08:00

2 commits

Author SHA1 Message Date
38500704a6 Format access log panel to show real client IPs
Update the Docs APM dashboard's log panel to parse JSON and display
clean formatted lines with client_ip instead of raw JSON blobs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 11:00:58 -08:00
f13bd7fca6 Log real client IPs via Fly-Client-IP header in proxy access logs
The Fly.io edge proxy forwards the original client IP in the
Fly-Client-IP header. Add this as a `client_ip` field in the nginx
JSON log format and extract it in the Alloy pipeline so Loki/Grafana
show real visitor IPs instead of the internal proxy address
(172.16.11.178).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 10:59:23 -08:00