Authored by 李奇

迁移docker日志和监控路由添加

... ... @@ -64,13 +64,13 @@ module.exports = {
infoFile: {
name: 'info',
level: 'info',
filename: 'logs/info.log',
filename: '/Data/logs/yohoblk-wap/info.log',
maxFiles: 7
},
errorFile: {
name: 'error',
level: 'error',
filename: 'logs/error.log',
filename: '/Data/logs/yohoblk-wap/error.log',
handleExceptions: true,
maxFiles: 7
},
... ... @@ -80,6 +80,7 @@ module.exports = {
port: '4444' // influxdb port
},
console: {
close: true,
level: 'debug',
colorize: 'all',
prettyPrint: true
... ... @@ -170,4 +171,4 @@ if (isProduction) {
useOneapm: true,
useCache: true
});
}
\ No newline at end of file
}
... ...
... ... @@ -115,6 +115,10 @@ exports.createApp = async (app) => {
await require('./doraemon/middleware/ssr')(app);
require('./dispatch')(app);
app.use('/crm/common/ok.jsp', (req, res) => {
res.status(204).end();
});
app.all('*', errorHanlder.notFound()); // 404
// YOHO 后置中间件
... ...