config.prod.js 2.2 KB

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