Allow custom SSL port

This commit is contained in:
Robbie Antenesse 2019-01-29 15:55:54 -07:00
parent 24a2991292
commit 86e6bcee61
2 changed files with 3 additions and 2 deletions

View File

@ -181,8 +181,8 @@ Server.prototype.start = function () {
console.log('Started server on port ' + (process.env.PORT || settings.port));
});
if (this.https) {
this.https.listen(443, () => {
console.log('Started SSL server on port 443');
this.https.listen(settings.sslPort, () => {
console.log('Started SSL server on port ' + settings.sslPort);
});
}
}

View File

@ -10,6 +10,7 @@
"allowedFormats": [".epub", ".mobi", ".pdf"],
"toolsPassword": "password",
"hideVisitors": false,
"sslPort": 443,
"sslPrivateKey": null,
"sslCertificate": null,
"sslCertificateAuthority": null,