"use strict"; let imDbConfig = { host: '172.19.103.77', user: 'root', password: '123456', database: 'im_new', connectionLimit: '50', charset: 'utf8mb4' }; // Redis let redisConfig = { host: '172.19.103.88', port: 6379, db: 6 }; // let redisConfig = { // host: '192.168.1.220', // port: 6379, // db: 1 // }; // 内网Redis let innerRedisConfig = { host: '172.19.103.88', port: 6379, db: 6 }; // 三师后台 let wlyyServerConfig = { host: '172.19.103.72', port: 9096, model:"/csijk" }; //医生助手配置 let wlyyDAServerConfig = { host: '172.19.103.88', port: 9092, model:"/wlyy" }; // 个推AppStore版参数 let getTuiConfig = { HOST: 'https://api.getui.com/apiex.htm', APPID: 'H6FYbDejks6VjMmW3uH7V6', APPKEY: '0PFWlKmLBN9YzhCfFWVgYA', MASTERSECRET: 'pvjCGtRZJx9SRVODkxc816' }; // 微信配置 let wechatConfig = { appId: 'wx1f129f7b51701428', appSecret: '988f005d8309ed1795939e0f042431fb', token: '27eb3bb24f149a7760cf1bb154b08040', accId: 'gh_ffd64560fb21', baseUrl: 'ehr.yihu.com/wlyy', template: { consultTemplate: '-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18' // 咨询回复模板 } }; // 会话配置 let sessionConfig = { maxMessageCount: 1000, // 会话缓存的消息数量 maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度 expireSessionCleanCount: 10 // 每次清理多少个过期会话 }; // 议题配置 let topicConfig = { TTL: 24, // 议题的存活时间,TTL = Time To Live TERMINATING_CRON: "* 30 * * * *" // 议题自动关闭的任务执行时间间隔 }; exports.environment = 'test'; exports.pubChannel = 'test'; exports.subChannel = 'dev'; exports.pubSubSwitch = false; 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.wlyyDAServerConfig = wlyyDAServerConfig; exports.wechatConfig = wechatConfig; exports.sessionConfig = sessionConfig; exports.topicConfig = topicConfig;