For some reason, Express thinks you want to start an HTTPS server. My guess would be this is because of this line in your code:
var app = module.exports = express.createServer(form({ keepExtensions: true }));
(link)
However, Express uses this code to see if it should start an HTTPS server:
exports.createServer = function(options){
if ('object' == typeof options) {
return new HTTPSServer(options, Array.prototype.slice.call(arguments, 1));
} else {
return new HTTPServer(Array.prototype.slice.call(arguments));
}
};
Which is a bit strange, since form()
returns a function and not an object. But to be sure, try rewriting your code to this:
var app = module.exports = express.createServer();
app.use(form({ keepExtensions: true }));