fix nginx config to properly report the remote IP