accept proxy protocol for ip address logging in the pages application
Currently when pages logs on gitlab.com it logs the ip address of the haproxy load balancer.
It would be much better if we were able to log the actual client ip, because we are required to use mode tcp
I believe the only way to do this is to use send-proxy
on the haproxy backend and accept the proxy protocol on the pages service.
References:
- https://docs.nginx.com/nginx/admin-guide/load-balancer/using-proxy-protocol/
- http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#send-proxy
Are there other options for the pages service for ip logging?
(note we do not use nginx between the pages application and haproxy)