mirror of https://github.com/BTCPrivate/z-nomp.git
Merge pull request #126 from z-classic/hellcatz-patch-5
Update website.js
This commit is contained in:
commit
b8e60519ae
|
@ -327,11 +327,7 @@ module.exports = function(logger){
|
|||
});
|
||||
|
||||
try {
|
||||
if (typeof portalConfig.website.tlsOptions !== 'undefined' && !portalConfig.website.tlsOptions.enabled) {
|
||||
app.listen(portalConfig.website.port, portalConfig.website.host, function () {
|
||||
logger.debug(logSystem, 'Server', 'Website started on ' + portalConfig.website.host + ':' + portalConfig.website.port);
|
||||
});
|
||||
} else {
|
||||
if (portalConfig.website.tlsOptions && portalConfig.website.tlsOptions.enabled === true) {
|
||||
var TLSoptions = {
|
||||
key: fs.readFileSync(portalConfig.website.tlsOptions.key),
|
||||
cert: fs.readFileSync(portalConfig.website.tlsOptions.cert)
|
||||
|
@ -340,6 +336,10 @@ module.exports = function(logger){
|
|||
https.createServer(TLSoptions, app).listen(portalConfig.website.port, portalConfig.website.host, function() {
|
||||
logger.debug(logSystem, 'Server', 'TLS Website started on ' + portalConfig.website.host + ':' + portalConfig.website.port);
|
||||
});
|
||||
} else {
|
||||
app.listen(portalConfig.website.port, portalConfig.website.host, function () {
|
||||
logger.debug(logSystem, 'Server', 'Website started on ' + portalConfig.website.host + ':' + portalConfig.website.port);
|
||||
});
|
||||
}
|
||||
}
|
||||
catch(e){
|
||||
|
|
Loading…
Reference in New Issue