Option to force https
If FORCE_HTTPS is set, will make a redirect if not using https at the Load Balancer. Parts of it shamelessly stolen from https://github.com/ember-fastboot/fastboot-app-server/issues/36.
@tomdale ping!
I've been using this for a while and occasionally getting:
TypeError: Cannot read property 'indexOf' of undefined
at forceHttpsMiddleware (/var/app/current/lib/force-https.js:5:80)
in the logs.
@erkarl thanks, indeed if the user agent header is undefined this would cause this exception. I just pushed a little change that should hopefully fix this!
@simonihmig thanks - going to test it :)
@simonihmig working just great so far :)
@erkarl thanks, good to know!
@tomdale when you have recovered from EmberConf, would you consider merging this? 😉