config.prod.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. "use strict";
  2. let imDbConfig = {
  3. host: '11.1.2.5',
  4. user: 'wlyy_sr',
  5. port:9069,
  6. password: '123456',
  7. database: 'im',
  8. connectionLimit: '100',
  9. charset : 'utf8mb4'
  10. };
  11. // Redis
  12. let redisConfig = {
  13. host: '11.1.2.22',
  14. port: 6390,
  15. db: 1,
  16. password:'Kb6wKDQP1W4'
  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: '11.1.2.22',
  27. port: 6390,
  28. db: 1,
  29. password:'Kb6wKDQP1W4'
  30. };
  31. // 三师后台
  32. let wlyyServerConfig = {
  33. host: 'srijk.yihu.com',
  34. port: 80,
  35. model:"/wlyy"
  36. };
  37. // 个推AppStore版参数
  38. let getTuiConfig = {
  39. HOST: 'https://api.getui.com/apiex.htm',
  40. APPID: 'NamoCLe9no9pIihdoZ930A',
  41. APPKEY: 'db7PZsd7TX6JAsLKmWuAT8',
  42. MASTERSECRET: '5IFJjgxRiI7QpuArMMT3E5'
  43. };
  44. // 微信配置
  45. let wechatConfig = {
  46. appId: 'wxe627ffaee2d05a40',
  47. appSecret: '7c29f6b28be7e54b742883a47ff39767',
  48. token: '27eb3bb24f149a7760cf1bb154b08040',
  49. accId: 'gh_ffd64560fb21',
  50. baseUrl: 'srijk.yihu.com/wlyy',
  51. template: {
  52. consultTemplate: '-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18' // 咨询回复模板
  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 = 'prod';
  68. exports.pubChannel = 'phone_to_pc';
  69. exports.subChannel = 'pc_to_phone';
  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.wechatConfig = wechatConfig;
  83. exports.sessionConfig = sessionConfig;
  84. exports.topicConfig = topicConfig;