-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.httpsIssues or PRs related to the https subsystem.Issues or PRs related to the https subsystem.
Description
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 ...');
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.httpsIssues or PRs related to the https subsystem.Issues or PRs related to the https subsystem.