Howto enable use-proxy-protocol on nginx

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
simred
Advanced member
Advanced member
Posts: 63
Joined: Wed Jun 28, 2017 9:40 am

Howto enable use-proxy-protocol on nginx

Post by simred »

Hi,
we use zcs ose 8.7.11. We use haproxy as a load balancer (tcp mode) for https/imaps/pops protocols to zimbra proxies. In the /opt/zimbra/log/nginx.log I'm unable to see the client IP address but only the haproxy IP as the caller. I know I can have the clent IP address logged in proxys log if I enable "use-proxy-protocol" on nginx. How can I set use-proxy-protocol on nginx proxy?

Tnx & br
Post Reply