config.test.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. "use strict";
  2. let imDbConfig = {
  3. host: '172.17.110.160',
  4. user: 'ssgg',
  5. password: 'ssgg',
  6. database: 'im_new',
  7. connectionLimit: '100',
  8. charset: 'utf8mb4'
  9. };
  10. // Redis
  11. let redisConfig = {
  12. host: '172.19.103.88',
  13. port: 6379,
  14. db: 1
  15. };
  16. // let redisConfig = {
  17. // host: '192.168.1.220',
  18. // port: 6379,
  19. // db: 1
  20. // };
  21. // 内网Redis
  22. let innerRedisConfig = {
  23. host: '172.19.103.88',
  24. port: 6379,
  25. db: 1
  26. };
  27. // 三师后台
  28. let wlyyServerConfig = {
  29. host: '172.19.103.88',
  30. port: 9092,
  31. model:"/wlyy"
  32. };
  33. // 个推AppStore版参数
  34. let getTuiConfig = {
  35. HOST: 'https://api.getui.com/apiex.htm',
  36. APPID: 'H6FYbDejks6VjMmW3uH7V6',
  37. APPKEY: '0PFWlKmLBN9YzhCfFWVgYA',
  38. MASTERSECRET: 'pvjCGtRZJx9SRVODkxc816'
  39. };
  40. // 微信配置
  41. let wechatConfig = {
  42. appId: 'wx1f129f7b51701428',
  43. appSecret: '988f005d8309ed1795939e0f042431fb',
  44. token: '27eb3bb24f149a7760cf1bb154b08040',
  45. baseUrl: 'ehr.yihu.com/wlyy',
  46. template: {
  47. consultTemplate: '-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18' // 咨询回复模板
  48. }
  49. };
  50. // 会话配置
  51. let sessionConfig = {
  52. maxMessageCount: 1000, // 会话缓存的消息数量
  53. maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度
  54. expireSessionCleanCount: 10 // 每次清理多少个过期会话
  55. };
  56. // 议题配置
  57. let topicConfig = {
  58. TTL: 24, // 议题的存活时间,TTL = Time To Live
  59. TERMINATING_CRON: "* 30 * * * *" // 议题自动关闭的任务执行时间间隔
  60. };
  61. exports.environment = 'test';
  62. exports.pubChannel = 'test';
  63. exports.subChannel = 'dev';
  64. exports.pubSubSwitch = false;
  65. exports.app = 'im.server';
  66. exports.version = '2.0.0';
  67. exports.debug = true;
  68. exports.serverPort = 3000;
  69. exports.sessionExpire = 1800;
  70. exports.showSQL = false;
  71. exports.imDbConfig = imDbConfig;
  72. exports.redisConfig = redisConfig;
  73. exports.innerRedisConfig = innerRedisConfig;
  74. exports.getTuiConfig = getTuiConfig;
  75. exports.wlyyServerConfig = wlyyServerConfig;
  76. exports.wechatConfig = wechatConfig;
  77. exports.sessionConfig = sessionConfig;
  78. exports.topicConfig = topicConfig;