1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- "use strict";
- // 三师后台数据库配置
- let wlyyDbConfig = {
- host: '172.19.103.77',
- user: 'root',
- password: '123456',
- database: 'wlyy',
- connectionLimit: '50',
- charset: 'utf8mb4'
- };
- // IM数据库配置
- let imDbConfig = {
- host: '172.19.103.77',
- user: 'root',
- password: '123456',
- database: 'ichat',
- connectionLimit: '50',
- charset: 'utf8mb4'
- };
- // Redis
- let redisConfig = {
- host: '192.168.1.220',
- port: 6379,
- db: 1
- };
- // 三师后台
- let wlyyServerConfig = {
- host: '172.19.103.87',
- port: 9092
- };
- // 透传服务
- let transServerConfig = {
- host: '172.19.103.76',
- port: 8000
- };
- // 企业版的推送配置
- let geTuiConfig = {
- HOST: 'https://api.getui.com/apiex.htm',
- APPID: 'qWmRh2X88l7HuE36z3qBe8',
- APPKEY: 'EzERfV8c849lBkZqHWzQG1',
- MASTERSECRET: 'veXiajQrId6iojy7Qv8kZ2'
- };
- // AppStore版的推送App配置
- let geTuiAppStoreCfg = {
- HOST: 'https://api.getui.com/apiex.htm',
- APPID: 'H6FYbDejks6VjMmW3uH7V6',
- APPKEY: '0PFWlKmLBN9YzhCfFWVgYA',
- MASTERSECRET: 'pvjCGtRZJx9SRVODkxc816'
- };
- // 微信配置
- let wechatConfig = {
- appId: 'wxd03f859efdf0873d',
- appSecret: '2935b54b53a957d9516c920a544f2537',
- token: '27eb3bb24f149a7760cf1bb154b08040',
- baseUrl: 'weixin.xmtyw.cn/wlyy',
- template: {
- consultTemplate: 'qSOW0DBxO3qEBm4ucG0Ial0jxsOyD7_f2TFK5e-mQEc' // 咨询回复模板
- }
- };
- // 会话配置
- let sessionConfig = {
- maxMessageCount: 1000, // 会话缓存的消息数量
- maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度
- expireTime: 3 * 60 * 60 * 1000, // 会话过期时间,以毫秒计
- expireSessionCleanCount: 10, // 每次清理多少个过期会话
- MUC:"1", //session模式配置
- P2P:"2",
- TEAM:"3"
- };
- exports.app = 'IM.Server';
- exports.version = '2.0.0';
- exports.debug = true;
- exports.serverPort = 3008;
- exports.sessionExpire = 1800;
- exports.showSQL = true;
- exports.wlyyDbConfig = wlyyDbConfig;
- exports.imDbConfig = imDbConfig;
- exports.redisConfig = redisConfig;
- exports.geTuiConfig = geTuiConfig;
- exports.geTuiAppStoreCfg = geTuiAppStoreCfg;
- exports.wlyyServerConfig = wlyyServerConfig;
- exports.transServerConfig = transServerConfig;
- exports.wechatConfig = wechatConfig;
- exports.sessionConfig = sessionConfig;
|