config.prod.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. "use strict";
  2. let imDbConfig = {
  3. host: '59.61.92.94',
  4. user: 'wlyy',
  5. password: 'jkzlehr@123',
  6. database: 'wlyy',
  7. connectionLimit: '100',
  8. charset : 'utf8mb4'
  9. };
  10. // Redis
  11. let redisConfig = {
  12. host: '192.168.1.220',
  13. port: 6379,
  14. db: 1
  15. };
  16. // 三师后台
  17. let wlyyServerConfig = {
  18. host: '120.41.252.108',
  19. port: 9660
  20. };
  21. // 个推AppStore版参数
  22. let getTuiConfig = {
  23. HOST: 'https://api.getui.com/apiex.htm',
  24. APPID: 'H6FYbDejks6VjMmW3uH7V6',
  25. APPKEY: '0PFWlKmLBN9YzhCfFWVgYA',
  26. MASTERSECRET: 'pvjCGtRZJx9SRVODkxc816'
  27. };
  28. // 微信配置
  29. let wechatConfig = {
  30. appId: 'wxad04e9c4c5255acf',
  31. appSecret: 'ae77c48ccf1af5d07069f5153d1ac8d3',
  32. token: '27eb3bb24f149a7760cf1bb154b08040',
  33. baseUrl: 'www.xmtyw.cn/wlyy',
  34. template: {
  35. consultTemplate: '0mF_vHj-ILx8EH8DwzmAi7LqzjqYiU9IrSRRmziTZyc' // 咨询回复模板
  36. }
  37. };
  38. // 会话配置
  39. let sessionConfig = {
  40. maxMessageCount: 1000, // 会话缓存的消息数量
  41. maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度
  42. expireTime: 3 * 60 * 60 * 1000, // 会话过期时间,以毫秒计
  43. expireSessionCleanCount: 10 // 每次清理多少个过期会话
  44. };
  45. exports.app = 'im.server';
  46. exports.version = '2.0.0';
  47. exports.debug = true;
  48. exports.serverPort = 3000;
  49. exports.sessionExpire = 1800;
  50. exports.showSQL = false;
  51. exports.imDbConfig = imDbConfig;
  52. exports.redisConfig = redisConfig;
  53. exports.getTuiConfig = getTuiConfig;
  54. exports.wlyyServerConfig = wlyyServerConfig;
  55. exports.wechatConfig = wechatConfig;
  56. exports.sessionConfig = sessionConfig;