Browse Source

Allow custom SSL port

master
Robbie Antenesse 4 years ago
parent
commit
86e6bcee61
  1. 4
      server.js
  2. 1
      settings.example.json

4
server.js

@ -181,8 +181,8 @@ Server.prototype.start = function () { @@ -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);
});
}
}

1
settings.example.json

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

Loading…
Cancel
Save