node
node copied to clipboard
https silently stopped working after upgrade to 1.4.1
https silently stopped working after upgrade to 1.4.1
Browsers and Postman cannot connect to https localhost as if io.js server is not running.
Downgrading to 1.3.0 solves the problem
let bodyParser = require('body-parser'),
compression = require('compression'),
express = require('express'),
fs = require('fs'),
https = require('https');
const SSL_OPTIONS = {
key: fs.readFileSync('ssl/hacksparrow-key.pem'),
cert: fs.readFileSync('ssl/hacksparrow-cert.pem')
};
let app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
extended: true
}));
app.use(compression({
level: 9
}));
app.use(express.static('public'));
require('./routes')(app);
https.createServer(SSL_OPTIONS, app).listen(8443);
console.log('Listening on port 8443 ...');
Fix https://github.com/iojs/io.js/pull/994 .
@rvagg It does seem to be a CI problem as well, since we wasn't aware of test failures. There are clearly lots of failing tests (all https and most of tls) on Windows atm.
probably related to the dramas I was having at release, will figure it out