add support for X-FORWARDED-PROTO