"use strict"; let imDbConfig = { host: '59.61.92.94', user: 'wlyy', password: 'jkzlehr@123', database: 'wlyy', connectionLimit: '100', charset : 'utf8mb4' }; // Redis let redisConfig = { host: '192.168.1.220', port: 6379, db: 1 }; // 三师后台 let wlyyServerConfig = { host: '120.41.252.108', port: 9660 }; // 个推AppStore版参数 let getTuiConfig = { HOST: 'https://api.getui.com/apiex.htm', APPID: 'H6FYbDejks6VjMmW3uH7V6', APPKEY: '0PFWlKmLBN9YzhCfFWVgYA', MASTERSECRET: 'pvjCGtRZJx9SRVODkxc816' }; // 微信配置 let wechatConfig = { appId: 'wxad04e9c4c5255acf', appSecret: 'ae77c48ccf1af5d07069f5153d1ac8d3', token: '27eb3bb24f149a7760cf1bb154b08040', baseUrl: 'www.xmtyw.cn/wlyy', template: { consultTemplate: '0mF_vHj-ILx8EH8DwzmAi7LqzjqYiU9IrSRRmziTZyc' // 咨询回复模板 } }; // 会话配置 let sessionConfig = { maxMessageCount: 1000, // 会话缓存的消息数量 maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度 expireTime: 3 * 60 * 60 * 1000, // 会话过期时间,以毫秒计 expireSessionCleanCount: 10 // 每次清理多少个过期会话 }; exports.app = 'im.server'; exports.version = '2.0.0'; exports.debug = true; exports.serverPort = 3000; exports.sessionExpire = 1800; exports.showSQL = false; exports.imDbConfig = imDbConfig; exports.redisConfig = redisConfig; exports.getTuiConfig = getTuiConfig; exports.wlyyServerConfig = wlyyServerConfig; exports.wechatConfig = wechatConfig; exports.sessionConfig = sessionConfig;