config.dev.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. "use strict";
  2. // IM数据库配置
  3. let imDbConfig = {
  4. host: '172.19.103.85',
  5. user: 'linzhou',
  6. password: 'linzhou',
  7. database: 'im_new',
  8. connectionLimit: '50',
  9. charset: 'utf8mb4'
  10. };
  11. // let imDbConfig = {
  12. // host: '172.19.103.77',
  13. // user: 'root',
  14. // password: '123456',
  15. // database: 'im_new',
  16. // connectionLimit: '50',
  17. // charset: 'utf8mb4'
  18. // };
  19. // Redis
  20. let redisConfig = {
  21. host: '172.19.103.88',
  22. port: 6379,
  23. db: 1
  24. };
  25. // 内网Redis
  26. let innerRedisConfig = {
  27. host: '172.19.103.88',
  28. port: 6379,
  29. db: 1
  30. };
  31. // 三师后台
  32. let wlyyServerConfig = {
  33. host: '172.19.103.88',
  34. port: 9092,
  35. model:"/wlyy"
  36. };
  37. // let wlyyServerConfig = {
  38. // host: '192.168.131.24',
  39. // port: 8086,
  40. // model:"/"
  41. // };
  42. //医生助手配置
  43. let wlyyDAServerConfig = {
  44. host: '192.168.131.113',
  45. port: 8080,
  46. model:"/"
  47. };
  48. // 个推AppStore版参数
  49. let getTuiConfig = {
  50. HOST: 'https://api.getui.com/apiex.htm',
  51. APPID: 'H6FYbDejks6VjMmW3uH7V6',
  52. APPKEY: '0PFWlKmLBN9YzhCfFWVgYA',
  53. MASTERSECRET: 'pvjCGtRZJx9SRVODkxc816'
  54. };
  55. // let getTuiConfig = {
  56. // HOST: 'https://api.getui.com/apiex.htm',
  57. // APPID: 'DKgbGvbacm74nJJzen5ilA',
  58. // APPSECRET: '4kGcL7e7kU6mbSqfEGZFW7',
  59. // APPKEY: 'ArZfS2qvoA7N3hawOAGVC5',
  60. // MASTERSECRET: '9lpy5vEss46tVzP1RCJiC4'
  61. // };
  62. // 微信配置
  63. // let wechatConfig = {
  64. // appId: 'wxd03f859efdf0873d',
  65. // appSecret: '2935b54b53a957d9516c920a544f2537',
  66. // token: '27eb3bb24f149a7760cf1bb154b08040',
  67. // baseUrl: 'weixin.xmtyw.cn/wlyy',
  68. // template: {
  69. // consultTemplate: 'qSOW0DBxO3qEBm4ucG0Ial0jxsOyD7_f2TFK5e-mQEc' // 咨询回复模板
  70. // }
  71. // };
  72. // 微信配置
  73. let wechatConfig = {
  74. appId: 'wx1f129f7b51701428',
  75. appSecret: '988f005d8309ed1795939e0f042431fb',
  76. token: '27eb3bb24f149a7760cf1bb154b08040',
  77. baseUrl: 'ehr.yihu.com/wlyy',
  78. template: {
  79. consultTemplate: '-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18' // 咨询回复模板
  80. }
  81. };
  82. // 会话配置
  83. let sessionConfig = {
  84. maxMessageCount: 2000, // 会话缓存的消息数量
  85. maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度
  86. expireTime: 3 * 60 * 60 * 1000, // 会话过期时间,以毫秒计
  87. expireSessionCleanCount: 10 // 每次清理多少个过期会话
  88. };
  89. // 议题配置
  90. let topicConfig = {
  91. TTL: 24, // 议题的存活时间,TTL = Time To Live
  92. TERMINATING_CRON: "* 44 * * * *" // 议题自动关闭的任务执行时间间隔
  93. };
  94. exports.environment = 'dev';
  95. exports.pubChannel = 'dev';
  96. exports.subChannel = 'test';
  97. exports.pubSubSwitch = false;
  98. exports.app = 'IM.Server';
  99. exports.version = '2.0.0';
  100. exports.debug = true;
  101. exports.serverPort = 3000;
  102. exports.sessionExpire = 1800;
  103. exports.showSQL = false;
  104. exports.imDbConfig = imDbConfig;
  105. exports.redisConfig = redisConfig;
  106. exports.innerRedisConfig = innerRedisConfig;
  107. exports.getTuiConfig = getTuiConfig;
  108. exports.wlyyServerConfig = wlyyServerConfig;
  109. exports.wlyyDAServerConfig = wlyyDAServerConfig;
  110. exports.wechatConfig = wechatConfig;
  111. exports.sessionConfig = sessionConfig;
  112. exports.topicConfig = topicConfig;