PostHog Cloud ignores X-Forwarded-For
PostHog wasn’t tracking client IPs correctly behind my reverse proxy. Next.js logged the right IPs, Caddy sent the right headers, but PostHog’s dashboard showed everyone visiting from my VPS in Frankfurt. This broke geographic analysis and location-based feature flags. The Setup My application stack: Next.js application Caddy reverse proxy (handles SSL) PostHog Cloud for analytics The proxy setup is standard: Caddy receives requests, sets proper headers, passes them to Next.js. ...