config.prod.js 2.5 KB

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