Logging Real IP with haproxy and nginx

References https://ma.ttias.be/nginx-access-log-log-the-real-users-ip-instead-of-the-proxy/ haproxy.conf backend systemerror.co.za ... option httpclose option forwardfor http-request set-header X-Forwarded-Port %[dst_port] http-request add-header X-Forwarded-Proto https if { ssl_fc } nginx.conf http { ... log_format main '$http_x_forwarded_for - $remote_user [$time_local] ' '"$request" $status…