config.test.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. //医生助手配置
  34. let wlyyDAServerConfig = {
  35. host: '172.19.103.88',
  36. port: 9092,
  37. model:"/wlyy"
  38. };
  39. // 个推AppStore版参数
  40. let getTuiConfig = {
  41. HOST: 'https://api.getui.com/apiex.htm',
  42. APPID: 'H6FYbDejks6VjMmW3uH7V6',
  43. APPKEY: '0PFWlKmLBN9YzhCfFWVgYA',
  44. MASTERSECRET: 'pvjCGtRZJx9SRVODkxc816'
  45. };
  46. // 微信配置
  47. let wechatConfig = {
  48. appId: 'wx1f129f7b51701428',
  49. appSecret: '988f005d8309ed1795939e0f042431fb',
  50. token: '27eb3bb24f149a7760cf1bb154b08040',
  51. baseUrl: 'ehr.yihu.com/wlyy',
  52. template: {
  53. consultTemplate: '-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18' // 咨询回复模板
  54. }
  55. };
  56. // 会话配置
  57. let sessionConfig = {
  58. maxMessageCount: 1000, // 会话缓存的消息数量
  59. maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度
  60. expireSessionCleanCount: 10 // 每次清理多少个过期会话
  61. };
  62. // 议题配置
  63. let topicConfig = {
  64. TTL: 24, // 议题的存活时间,TTL = Time To Live
  65. TERMINATING_CRON: "* 30 * * * *" // 议题自动关闭的任务执行时间间隔
  66. };
  67. exports.environment = 'test';
  68. exports.pubChannel = 'test';
  69. exports.subChannel = 'dev';
  70. exports.pubSubSwitch = true;
  71. exports.app = 'im.server';
  72. exports.version = '2.0.0';
  73. exports.debug = true;
  74. exports.serverPort = 3000;
  75. exports.sessionExpire = 1800;
  76. exports.showSQL = false;
  77. exports.imDbConfig = imDbConfig;
  78. exports.redisConfig = redisConfig;
  79. exports.innerRedisConfig = innerRedisConfig;
  80. exports.getTuiConfig = getTuiConfig;
  81. exports.wlyyServerConfig = wlyyServerConfig;
  82. exports.wlyyDAServerConfig = wlyyDAServerConfig;
  83. exports.wechatConfig = wechatConfig;
  84. exports.sessionConfig = sessionConfig;
  85. exports.topicConfig = topicConfig;