config.test.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. "use strict";
  2. let imDbConfig = {
  3. host: '172.26.0.104',
  4. user: 'ssgg',
  5. password: 'ssgg@jkzl2019',
  6. database: 'im_new',
  7. connectionLimit: '50',
  8. charset: 'utf8mb4'
  9. };
  10. // Redis
  11. let redisConfig = {
  12. host: '172.26.0.253',
  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.26.0.253',
  24. port: 6379,
  25. db: 1
  26. };
  27. // 三师后台
  28. let wlyyServerConfig = {
  29. host: '172.26.0.104',
  30. port: 8080,
  31. model:"/wlyy"
  32. };
  33. //医生助手配置
  34. let wlyyDAServerConfig = {
  35. host: '172.26.0.104',
  36. port: 8080,
  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. accId: 'gh_ffd64560fb21',
  52. baseUrl: 'ehr.yihu.com/wlyy',
  53. template: {
  54. consultTemplate: '-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18' // 咨询回复模板
  55. }
  56. };
  57. // 会话配置
  58. let sessionConfig = {
  59. maxMessageCount: 1000, // 会话缓存的消息数量
  60. maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度
  61. expireSessionCleanCount: 10 // 每次清理多少个过期会话
  62. };
  63. // 议题配置
  64. let topicConfig = {
  65. TTL: 24, // 议题的存活时间,TTL = Time To Live
  66. TERMINATING_CRON: "* 30 * * * *" // 议题自动关闭的任务执行时间间隔
  67. };
  68. exports.environment = 'test';
  69. exports.pubChannel = 'test';
  70. exports.subChannel = 'dev';
  71. exports.pubSubSwitch = false;
  72. exports.app = 'im.server';
  73. exports.version = '2.0.0';
  74. exports.debug = true;
  75. exports.serverPort = 3000;
  76. exports.sessionExpire = 1800;
  77. exports.showSQL = false;
  78. exports.imDbConfig = imDbConfig;
  79. exports.redisConfig = redisConfig;
  80. exports.innerRedisConfig = innerRedisConfig;
  81. exports.getTuiConfig = getTuiConfig;
  82. exports.wlyyServerConfig = wlyyServerConfig;
  83. exports.wlyyDAServerConfig = wlyyDAServerConfig;
  84. exports.wechatConfig = wechatConfig;
  85. exports.sessionConfig = sessionConfig;
  86. exports.topicConfig = topicConfig;