fix ssl redirection due to lack of HTTP_X_FORWARDED_PROTO header with cloudflare and heroku