Log real client IPs via Fly-Client-IP header #130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/real-client-ip-logging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
client_ipfield to the Fly.io nginx JSON log format, sourced fromFly-Client-IPheaderclient_ipin the Alloy pipeline so it's available as a parsed field in Lokiremote_addr(the internal proxy IP) for debuggingFixes: Grafana access logs for docs.eblu.me showing 172.16.11.178 for every request instead of real visitor IPs.
Deployment and Testing
fly deployfromfly/directoryclient_ipwith real IPsremote_addrstill shows the proxy IP (preserved for debugging)