Trying another option to handle redirects using x-forwarded-proto.