Sails.JS HTTP + HTTPS
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 here ): var fs = require('fs'); module.exports = { port: process.env.PORT || 1337, environment: process.env.NODE_ENV || 'development', express: { serverOptions : { key: fs.readFileSync('ssl/key.pem'), cert: fs.readFileSync('ssl/cert.pem') }} }; However, while this works, it results in the server only being able to serve HTTPS requests. Has anyone figured out how to get this done, without creating a separate HTTP only server