Added option to check for X-Forwarded-* headers in a reverse proxy setup