Fixing nginx configuration to add x-forwarded-for and the webserver for properly reporting it