|
@@ -17,9 +17,9 @@ module.exports = appInfo => {
|
|
|
// 端口号
|
|
|
port: '3306',
|
|
|
// 用户名
|
|
|
- user: 'root',
|
|
|
+ user: 'zh_calc',
|
|
|
// 密码
|
|
|
- password: 'root',
|
|
|
+ password: 'calc2019',
|
|
|
// 数据库名
|
|
|
database: 'calculation',
|
|
|
},
|
|
@@ -34,18 +34,15 @@ module.exports = appInfo => {
|
|
|
// redis设置
|
|
|
config.redis = {
|
|
|
client: {
|
|
|
- host: '192.168.1.70',
|
|
|
+ host: '127.0.0.1',
|
|
|
port: '6379',
|
|
|
- password: 'test',
|
|
|
+ password: 'zongheng2019',
|
|
|
db: '0',
|
|
|
},
|
|
|
agent: true,
|
|
|
version: '1.0.0',
|
|
|
};
|
|
|
|
|
|
- //config.filePath = appInfo.baseDir + '/app/public/files';
|
|
|
- config.filePath = '//Mai/share_calc';
|
|
|
-
|
|
|
// session配置
|
|
|
config.session = {
|
|
|
key: 'ZHC_SESS',
|
|
@@ -56,15 +53,5 @@ module.exports = appInfo => {
|
|
|
rolling: true, // 每次都更新session有效期
|
|
|
};
|
|
|
|
|
|
- // 是否压缩替换前端js
|
|
|
- config.min = false;
|
|
|
-
|
|
|
- config.logger = {
|
|
|
- consoleLevel: 'WARN',
|
|
|
- disableConsoleAfterReady: false,
|
|
|
- };
|
|
|
-
|
|
|
- config.is_debug = true;
|
|
|
-
|
|
|
return config;
|
|
|
};
|