I am trying to figure out how to lift a sails app that responds to both HTTP and HTTPS requests. I used the config/local.js method of configuring express like so (detailed h
I've been wondering for running sailsjs on HTTPS and after going back and forth here is the solution working for me.
config/local.js updated with following as I'm using sailsjs 0.12.3
ssl: {
key: require('fs').readFileSync(require('path').resolve(__dirname + '/ssl/mykey.key')),
cert: require('fs').readFileSync(require('path').resolve(__dirname + '/ssl/mycert.crt'))
}