Browse Source

新增医养项目配置

yeshijie 4 năm trước cách đây
mục cha
commit
b9ec89308b
2 tập tin đã thay đổi với 109 bổ sung0 xóa
  1. 2 0
      src/server/include/commons.js
  2. 107 0
      src/server/resources/config/config.hzprod.js

+ 2 - 0
src/server/include/commons.js

@ -19,6 +19,8 @@ if (process.env.IM_PROFILE === "prod") {
    configFile += "test";
} else if (process.env.IM_PROFILE === "ystest") {
    configFile += "ystest";
} else if (process.env.IM_PROFILE === "hzprod") {
    configFile += "hzprod";
} else {
    configFile += "test";
}

+ 107 - 0
src/server/resources/config/config.hzprod.js

@ -0,0 +1,107 @@
"use strict";
let imDbConfig = {
    host: '172.26.0.13',
    user: 'root',
    password: '*ukOOSl&c0!y',
    database: 'im_internet_hospital',
    connectionLimit: '50',
    charset: 'utf8mb4'
};
// Redis
let redisConfig = {
    host: '172.26.0.13',
    port: 6379,
    db: 1,
    password:'Kb6wKDQP1W4'
};
// let redisConfig = {
//     host: '192.168.1.220',
//     port: 6379,
//     db: 1
// };
// 内网Redis
let innerRedisConfig = {
    host: '172.26.0.13',
    port: 6379,
    db: 1,
    password:'Kb6wKDQP1W4'
};
// 三师后台
let wlyyServerConfig = {
    host: '172',
    port: 8080,
    model:"/wlyy"
};
//医生助手配置
let wlyyDAServerConfig = {
    host: '172',
    port: 8080,
    model:"/wlyy"
};
// 个推AppStore版参数
let getTuiConfig = {
    HOST: 'https://api.getui.com/apiex.htm',
    APPID: 'H6FYbDeH7V6',
    APPKEY: '0PFWgYA',
    MASTERSECRET: 'p16'
};
// 微信配置
let wechatConfig = {
    appId: 'wx2c55f5b7b2f3cb56',
    appSecret: '0dd9927e58125ad5f0efb9299860d145',
    token: '27eb3bb24f149a7760cf1bb154b08041',
    accId: 'gh_da06ed9e5751',
    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 * * * *"        // 议题自动关闭的任务执行时间间隔
};
//IM 客户端医院参数配置
let imClientType = {
    id : "zsyy",
    url : "htm"
}
exports.environment = 'hzprod';
exports.pubChannel = 'phone_to_pc';
exports.subChannel = 'pc_to_phone';
exports.pubSubSwitch = false;
exports.app = 'im.server';
exports.version = '2.0.0';
exports.debug = true;
exports.serverPort = 3000;
exports.sessionExpire = 1800;
exports.httpsOpen = false;
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;