"use strict"; let imDbConfig = { host: '11.1.2.5', user: 'wlyy_sr', port:9069, password: '123456', database: 'im', connectionLimit: '100', charset : 'utf8mb4' }; // Redis let redisConfig = { host: '11.1.2.22', port: 6390, db: 1, password:'Kb6wKDQP1W4' }; // let redisConfig = { // host: '192.168.120.14', // port: 6380, // db: 1, // password:'jkzl_ehr' // }; // 内网Redis let innerRedisConfig = { host: '11.1.2.22', port: 6390, db: 1, password:'Kb6wKDQP1W4' }; // 三师后台 let wlyyServerConfig = { host: 'srijk.yihu.com', port: 80, model:"/wlyy" }; // 个推AppStore版参数 let getTuiConfig = { HOST: 'https://api.getui.com/apiex.htm', APPID: 'NamoCLe9no9pIihdoZ930A', APPKEY: 'db7PZsd7TX6JAsLKmWuAT8', MASTERSECRET: '5IFJjgxRiI7QpuArMMT3E5' }; // 微信配置 let wechatConfig = { appId: 'wxe627ffaee2d05a40', appSecret: '7c29f6b28be7e54b742883a47ff39767', token: '27eb3bb24f149a7760cf1bb154b08040', accId: 'gh_ffd64560fb21', baseUrl: 'srijk.yihu.com/wlyy', template: { consultTemplate: '-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18' // 咨询回复模板 } }; // 会话配置 let sessionConfig = { maxMessageCount: 1000, // 会话缓存的消息数量 maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度 expireTime: 3 * 60 * 60 * 1000, // 会话过期时间,以毫秒计 expireSessionCleanCount: 10 // 每次清理多少个过期会话 }; // 议题配置 let topicConfig = { TTL: 24, // 议题的存活时间,TTL = Time To Live TERMINATING_CRON: "* 59 * * * *" // 议题自动关闭的任务执行时间间隔 }; exports.environment = 'prod'; exports.pubChannel = 'phone_to_pc'; exports.subChannel = 'pc_to_phone'; exports.pubSubSwitch = true; 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.innerRedisConfig = innerRedisConfig; exports.getTuiConfig = getTuiConfig; exports.wlyyServerConfig = wlyyServerConfig; exports.wechatConfig = wechatConfig; exports.sessionConfig = sessionConfig; exports.topicConfig = topicConfig;