123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- "use strict";
- // IM数据库配置
- let imDbConfig = {
- host: '172.19.103.85',
- user: 'linzhou',
- password: 'linzhou',
- database: 'im_new',
- connectionLimit: '50',
- charset: 'utf8mb4'
- };
- // 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: 1
- };
- // 内网Redis
- let innerRedisConfig = {
- host: '172.19.103.88',
- port: 6379,
- db: 1
- };
- // 三师后台
- let wlyyServerConfig = {
- host: '172.19.103.88',
- port: 9092,
- model:"/wlyy"
- };
- // let wlyyServerConfig = {
- // host: '192.168.131.24',
- // port: 8086,
- // model:"/"
- // };
- //医生助手配置
- let wlyyDAServerConfig = {
- host: '192.168.131.113',
- port: 8080,
- model:"/"
- };
- // 个推AppStore版参数
- let getTuiConfig = {
- HOST: 'https://api.getui.com/apiex.htm',
- APPID: 'H6FYbDejks6VjMmW3uH7V6',
- APPKEY: '0PFWlKmLBN9YzhCfFWVgYA',
- MASTERSECRET: 'pvjCGtRZJx9SRVODkxc816'
- };
- // let getTuiConfig = {
- // HOST: 'https://api.getui.com/apiex.htm',
- // APPID: 'DKgbGvbacm74nJJzen5ilA',
- // APPSECRET: '4kGcL7e7kU6mbSqfEGZFW7',
- // APPKEY: 'ArZfS2qvoA7N3hawOAGVC5',
- // MASTERSECRET: '9lpy5vEss46tVzP1RCJiC4'
- // };
- // 微信配置
- // let wechatConfig = {
- // appId: 'wxd03f859efdf0873d',
- // appSecret: '2935b54b53a957d9516c920a544f2537',
- // token: '27eb3bb24f149a7760cf1bb154b08040',
- // baseUrl: 'weixin.xmtyw.cn/wlyy',
- // template: {
- // consultTemplate: 'qSOW0DBxO3qEBm4ucG0Ial0jxsOyD7_f2TFK5e-mQEc' // 咨询回复模板
- // }
- // };
- // 微信配置
- let wechatConfig = {
- appId: 'wx1f129f7b51701428',
- appSecret: '988f005d8309ed1795939e0f042431fb',
- token: '27eb3bb24f149a7760cf1bb154b08040',
- baseUrl: 'ehr.yihu.com/wlyy',
- template: {
- consultTemplate: '-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18' // 咨询回复模板
- }
- };
- // 会话配置
- let sessionConfig = {
- maxMessageCount: 2000, // 会话缓存的消息数量
- maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度
- expireTime: 3 * 60 * 60 * 1000, // 会话过期时间,以毫秒计
- expireSessionCleanCount: 10 // 每次清理多少个过期会话
- };
- // 议题配置
- let topicConfig = {
- TTL: 24, // 议题的存活时间,TTL = Time To Live
- TERMINATING_CRON: "* 44 * * * *" // 议题自动关闭的任务执行时间间隔
- };
- exports.environment = 'dev';
- exports.pubChannel = 'dev';
- exports.subChannel = 'test';
- 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;
|