with the latest patch, nginx bump to 1.19, so now nginx support proxy_protocol.
I find a an easy way/the best way, to configure nginx to accept proxy_protocol behind an haproxy, to have the real ip address in log instead of haproxy ip...
to enable it on nginx, it only consist to have an additional parameters on the listen line :
Code: Select all
server {
listen 80 proxy_protocol;
listen 443 ssl proxy_protocol;
#...
}
thanks for your help.
Eric
for more information about this protocol and configuration:
https://docs.nginx.com/nginx/admin-guid ... -protocol/
https://cbonte.github.io/haproxy-dconv/ ... send-proxy