config.test.js 2.2 KB

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