Zimbra 8.8.15-p20 nginx 1.19 proxy_protocol

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
erme
Posts: 3
Joined: Thu Nov 05, 2020 6:14 pm

Zimbra 8.8.15-p20 nginx 1.19 proxy_protocol

Post by erme »

Hello,
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;
        #...
   }
how can I configure that to be sure that this parameter will not be removed with the next update ?
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
Post Reply