Don't set the x-real-ip in nginx as it will break when proxies are connecting to nginx.