config.local.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. "use strict";
  2. let imDbConfig = {
  3. host: '10.95.22.143',
  4. user: 'im',
  5. port:3306,
  6. password: 'im!)123',
  7. database: 'im',
  8. connectionLimit: '100',
  9. charset : 'utf8mb4'
  10. };
  11. // Redis
  12. let redisConfig = {
  13. host: '10.95.22.142',
  14. port: 6380,
  15. db: 1,
  16. password:'jkzlehr'
  17. };
  18. // 内网Redis
  19. let innerRedisConfig = {
  20. host: '10.95.22.142',
  21. port: 6380,
  22. db: 1,
  23. password:'jkzlehr'
  24. };
  25. // 三师后台
  26. let wlyyServerConfig = {
  27. host: '10.95.22.137',
  28. port: 9660,
  29. model:"/wlyy"
  30. };
  31. //医生助手配置
  32. let wlyyDAServerConfig = {
  33. host: '27.155.100.191',
  34. port: 9660,
  35. model:"/wlyy"
  36. };
  37. // 个推AppStore版参数
  38. let getTuiConfig = {
  39. HOST: 'https://api.getui.com/apiex.htm',
  40. APPID: 'qWmRh2X88l7HuE36z3qBe8',
  41. APPKEY: 'EzERfV8c849lBkZqHWzQG1',
  42. MASTERSECRET: 'veXiajQrId6iojy7Qv8kZ2'
  43. };
  44. // 微信配置
  45. let wechatConfig = {
  46. appId: 'wxad04e9c4c5255acf',
  47. appSecret: 'ae77c48ccf1af5d07069f5153d1ac8d3',
  48. token: '27eb3bb24f149a7760cf1bb154b08040',
  49. accId: 'gh_ffd64560fb21',
  50. baseUrl: 'www.xmtyw.cn/wlyy',
  51. template: {
  52. consultTemplate: '0mF_vHj-ILx8EH8DwzmAi7LqzjqYiU9IrSRRmziTZyc' // 咨询回复模板
  53. }
  54. };
  55. // 会话配置
  56. let sessionConfig = {
  57. maxMessageCount: 1000, // 会话缓存的消息数量
  58. maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度
  59. expireTime: 3 * 60 * 60 * 1000, // 会话过期时间,以毫秒计
  60. expireSessionCleanCount: 10 // 每次清理多少个过期会话
  61. };
  62. // 议题配置
  63. let topicConfig = {
  64. TTL: 24, // 议题的存活时间,TTL = Time To Live
  65. TERMINATING_CRON: "* 59 * * * *" // 议题自动关闭的任务执行时间间隔
  66. };
  67. exports.environment = 'local';
  68. exports.pubChannel = 'pc_to_phone';
  69. exports.subChannel = 'phone_to_pc';
  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;