|  | @@ -13,13 +13,13 @@ module.exports = appInfo => {
 | 
	
		
			
				|  |  |      config.mysql = {
 | 
	
		
			
				|  |  |          client: {
 | 
	
		
			
				|  |  |              // host
 | 
	
		
			
				|  |  | -            host: '127.0.0.1',
 | 
	
		
			
				|  |  | +            host: '192.168.1.76',
 | 
	
		
			
				|  |  |              // 端口号
 | 
	
		
			
				|  |  |              port: '3306',
 | 
	
		
			
				|  |  |              // 用户名
 | 
	
		
			
				|  |  | -            user: 'root',
 | 
	
		
			
				|  |  | +            user: 'zh_dev',
 | 
	
		
			
				|  |  |              // 密码
 | 
	
		
			
				|  |  | -            password: 'root',
 | 
	
		
			
				|  |  | +            password: 'zongheng2019',
 | 
	
		
			
				|  |  |              // 数据库名
 | 
	
		
			
				|  |  |              database: 'calculation',
 | 
	
		
			
				|  |  |          },
 | 
	
	
		
			
				|  | @@ -34,9 +34,9 @@ module.exports = appInfo => {
 | 
	
		
			
				|  |  |      // redis设置
 | 
	
		
			
				|  |  |      config.redis = {
 | 
	
		
			
				|  |  |          client: {
 | 
	
		
			
				|  |  | -            host: '127.0.0.1',
 | 
	
		
			
				|  |  | +            host: '192.168.1.76',
 | 
	
		
			
				|  |  |              port: '6379',
 | 
	
		
			
				|  |  | -            password: 'test',
 | 
	
		
			
				|  |  | +            password: 'zongheng2019',
 | 
	
		
			
				|  |  |              db: '0',
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          agent: true,
 | 
	
	
		
			
				|  | @@ -65,8 +65,25 @@ module.exports = appInfo => {
 | 
	
		
			
				|  |  |          fileSize: '30mb',
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    // session配置
 | 
	
		
			
				|  |  | +    config.session = {
 | 
	
		
			
				|  |  | +        key: 'ZHC_SESS',
 | 
	
		
			
				|  |  | +        maxAge: 7 * 24 * 3600 * 1000, // 7天
 | 
	
		
			
				|  |  | +        httpOnly: true,
 | 
	
		
			
				|  |  | +        encrypt: true,
 | 
	
		
			
				|  |  | +        //renew: true, // session临近过期更新过期时间
 | 
	
		
			
				|  |  | +        rolling: true, // 每次都更新session有效期
 | 
	
		
			
				|  |  | +    };
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      // 是否压缩替换前端js
 | 
	
		
			
				|  |  | -    config.min = true;
 | 
	
		
			
				|  |  | +    config.min = false;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    config.logger = {
 | 
	
		
			
				|  |  | +        consoleLevel: 'WARN',
 | 
	
		
			
				|  |  | +        disableConsoleAfterReady: false,
 | 
	
		
			
				|  |  | +    };
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    config.is_debug = true;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      return config;
 | 
	
		
			
				|  |  |  };
 |