node-http-server
/server.js |
@@ -26,7 +26,7 @@ |
.resolve(__dirname, 'src', 'certs') |
); |
|
// Configuration file. |
// Load configuration file. |
const config = require( |
path |
.resolve(__dirname, 'config') |
@@ -97,11 +97,11 @@ |
} |
}) |
).listen(config.net.port, config.net.address, () => { |
log.info('HTTP Server is listening on: ' + |
log.info('HTTP Server accessible at: http://' + |
config.net.address + |
' and port: ' + |
':' + |
config.net.port + |
' whilst serving files from: ' + |
'.' + |
root |
); |
}); |
@@ -135,12 +135,11 @@ |
} |
}) |
).listen(config.ssl.port, config.ssl.address, () => { |
// Print information on server startup. |
log.info('HTTPs Server is listening on: ' + |
config.net.address + |
' and port: ' + |
config.net.port + |
' whilst serving files from: ' + |
log.info('HTTPs Server accessible at: https://' + |
config.ssl.address + |
':' + |
config.ssl.port + |
'.' + |
root |
); |
}) |