blumeops/fly
Erich Blume 3415cad38c
All checks were successful
Deploy Fly.io Proxy / deploy (push) Successful in 59s
Log real client IPs via Fly-Client-IP header (#130)
## Summary
- Add `client_ip` field to the Fly.io nginx JSON log format, sourced from `Fly-Client-IP` header
- Extract `client_ip` in the Alloy pipeline so it's available as a parsed field in Loki
- Keeps `remote_addr` (the internal proxy IP) for debugging

Fixes: Grafana access logs for docs.eblu.me showing 172.16.11.178 for every request instead of real visitor IPs.

## Deployment and Testing
- [ ] Deploy updated fly.io proxy: `fly deploy` from `fly/` directory
- [ ] Verify in Grafana that new log lines include `client_ip` with real IPs
- [ ] Confirm `remote_addr` still shows the proxy IP (preserved for debugging)

Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/130
2026-02-09 11:02:06 -08:00
..
alloy.river Log real client IPs via Fly-Client-IP header (#130) 2026-02-09 11:02:06 -08:00
Dockerfile Add Fly.io proxy observability via embedded Alloy (#123) 2026-02-08 10:05:38 -08:00
fly.toml Add Fly.io public reverse proxy for docs.eblu.me (#120) 2026-02-08 02:36:19 -08:00
nginx.conf Log real client IPs via Fly-Client-IP header (#130) 2026-02-09 11:02:06 -08:00
start.sh Fix fly-deploy WARNING by starting nginx before Tailscale (#128) 2026-02-09 07:01:58 -08:00