diff --git a/server.js b/server.js index 31de42f..3b5b440 100644 --- a/server.js +++ b/server.js @@ -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); }); } } diff --git a/settings.example.json b/settings.example.json index 11c442f..6512847 100644 --- a/settings.example.json +++ b/settings.example.json @@ -10,6 +10,7 @@ "allowedFormats": [".epub", ".mobi", ".pdf"], "toolsPassword": "password", "hideVisitors": false, + "sslPort": 443, "sslPrivateKey": null, "sslCertificate": null, "sslCertificateAuthority": null,