We have a very typical setup - HAProxy forwarding to nginx, which then proxies to PHP-FPM.
The issue we have is figuring out the remote client IP. Setting REMOTE_ADDR to $http_x_forwarded_for works fine for HTTP traffic, but fails on HTTPS traffic (ie. it's blank.)
Is there a way to figure out the remote address for SSL connections?