sails.getBaseurl() returns a localhost URL when deployed (on Heroku) #2300

Add ability to use http in 'sails.config.proxyHost' config property and automatically add https when port is 443
Can you indent lines 14 to 16 in one line please?