small fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
port: 80,
|
||||
// port: 80, // 除非80/443意外的非标准端口,才需要定义。这样避免只修改 protocol 而忘了修改 port 造成错误。
|
||||
protocol: 'http', // by default http for development. Please change to https in configSec.js for production.
|
||||
host: 'server.fiv.tacever.org',
|
||||
// sslType: 'file'
|
||||
|
||||
@@ -39,7 +39,7 @@ module.exports = () => inject(function runServer (SysConfig) { // 配置并启
|
||||
reply.redirect(`https://${SysConfig.host}:${portHttps}`)
|
||||
})).listen(portHttp, function(err) {
|
||||
if (err) console.log(err)
|
||||
else console.log(`Server listening on [${wo.Config.protocol}] http://${SysConfig.host}:${portHttp} for ${app.settings.env} environment`)
|
||||
else console.log(`Server listening on [${SysConfig.protocol}] http://${SysConfig.host}:${portHttp} for ${app.settings.env} environment`)
|
||||
})
|
||||
webServer = require('https').createServer({
|
||||
key: fs.readFileSync(SysConfig.sslKey),
|
||||
|
||||
Reference in New Issue
Block a user