|
@ -0,0 +1,100 @@
|
|
|
"use strict";
|
|
|
|
|
|
let imDbConfig = {
|
|
|
host: '192.10.20.42',
|
|
|
user: 'root',
|
|
|
password: '1jMQNUAZXip#!0B^',
|
|
|
database: 'im_new',
|
|
|
connectionLimit: '50',
|
|
|
charset: 'utf8mb4'
|
|
|
};
|
|
|
|
|
|
// Redis
|
|
|
let redisConfig = {
|
|
|
host: '192.10.20.42',
|
|
|
port: 6379,
|
|
|
db: 1,
|
|
|
password:'Kb6wKDQP1W4'
|
|
|
};
|
|
|
// let redisConfig = {
|
|
|
// host: '192.168.1.220',
|
|
|
// port: 6379,
|
|
|
// db: 1
|
|
|
// };
|
|
|
// 内网Redis
|
|
|
let innerRedisConfig = {
|
|
|
host: '192.10.20.42',
|
|
|
port: 6379,
|
|
|
db: 1,
|
|
|
password:'Kb6wKDQP1W4'
|
|
|
};
|
|
|
// 三师后台
|
|
|
let wlyyServerConfig = {
|
|
|
host: '192.10.20.43',
|
|
|
port: 8081,
|
|
|
model:"/wlyy"
|
|
|
};
|
|
|
|
|
|
//医生助手配置
|
|
|
let wlyyDAServerConfig = {
|
|
|
host: '174',
|
|
|
port: 8080,
|
|
|
model:"/wlyy"
|
|
|
};
|
|
|
|
|
|
// 个推AppStore版参数
|
|
|
let getTuiConfig = {
|
|
|
HOST: 'https://api.htm',
|
|
|
APPID: 'H6FY3uH7V6',
|
|
|
APPKEY: '0PFWlFWVgYA',
|
|
|
MASTERSECRET: 'pODkxc816'
|
|
|
};
|
|
|
|
|
|
// 微信配置
|
|
|
let wechatConfig = {
|
|
|
appId: 'wx1f11428',
|
|
|
appSecret: '988f042431fb',
|
|
|
token: '27eb3bb1bb154b08040',
|
|
|
accId: 'gh_ffb21',
|
|
|
baseUrl: 'http://ehwlyy',
|
|
|
template: {
|
|
|
consultTemplate: '-dr4QNywJ21vBLhf18' // 咨询回复模板
|
|
|
}
|
|
|
};
|
|
|
|
|
|
// 会话配置
|
|
|
let sessionConfig = {
|
|
|
maxMessageCount: 1000, // 会话缓存的消息数量
|
|
|
maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度
|
|
|
|
|
|
expireSessionCleanCount: 10 // 每次清理多少个过期会话
|
|
|
};
|
|
|
|
|
|
// 议题配置
|
|
|
let topicConfig = {
|
|
|
TTL: 24, // 议题的存活时间,TTL = Time To Live
|
|
|
TERMINATING_CRON: "* 30 * * * *" // 议题自动关闭的任务执行时间间隔
|
|
|
};
|
|
|
|
|
|
exports.environment = 'laprod';
|
|
|
exports.pubChannel = 'prod';
|
|
|
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;
|