Check for a different header to determine https/http when proxied by nginx