config.test.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. "use strict";
  2. var wlyyDbConfig = {
  3. host: '172.17.110.160',
  4. user: 'ssgg',
  5. password: 'ssgg',
  6. database: 'wlyy',
  7. connectionLimit: '100',
  8. charset : 'utf8mb4'
  9. };
  10. var imDbConfig = {
  11. host: '172.17.110.160',
  12. user: 'ssgg',
  13. password: 'ssgg',
  14. database: 'im_new',
  15. connectionLimit: '100',
  16. charset : 'utf8mb4'
  17. };
  18. // Redis
  19. let redisConfig = {
  20. host: '192.168.1.220',
  21. port: 6379,
  22. db: 1
  23. };
  24. // 三师后台
  25. var wlyyServerConfig = {
  26. host: '172.19.103.88',
  27. port: 9092
  28. };
  29. // 透传服务
  30. var transServerConfig = {
  31. host: '172.19.103.76',
  32. port: 8000
  33. };
  34. // 企业版的推送配置
  35. var geTuiConfig = {
  36. HOST: 'https://api.getui.com/apiex.htm',
  37. APPID: 'qWmRh2X88l7HuE36z3qBe8',
  38. APPKEY: 'EzERfV8c849lBkZqHWzQG1',
  39. MASTERSECRET: 'veXiajQrId6iojy7Qv8kZ2'
  40. };
  41. //AppStore版的推送App配置
  42. var geTuiAppStoreCfg = {
  43. HOST : 'https://api.getui.com/apiex.htm',
  44. APPID : 'H6FYbDejks6VjMmW3uH7V6',
  45. APPKEY : '0PFWlKmLBN9YzhCfFWVgYA',
  46. MASTERSECRET : 'pvjCGtRZJx9SRVODkxc816'
  47. };
  48. // 微信配置
  49. let wechatConfig = {
  50. appId: 'wxd03f859efdf0873d',
  51. appSecret: '2935b54b53a957d9516c920a544f2537',
  52. token: '27eb3bb24f149a7760cf1bb154b08040',
  53. baseUrl: 'weixin.xmtyw.cn/wlyy',
  54. template: {
  55. consultTemplate: 'qSOW0DBxO3qEBm4ucG0Ial0jxsOyD7_f2TFK5e-mQEc' // 咨询回复模板
  56. }
  57. };
  58. let sessionConfig = {
  59. maxMessageCount: 1000, // 会话缓存的消息数量
  60. maxMessageTimespan: 7 * 24 * 3600, // 会话缓存的最大时间跨度
  61. expireSessionCleanCount: 10 // 每次清理多少个过期会话
  62. };
  63. exports.app = 'im.server';
  64. exports.version = '1.0.2.20160805';
  65. exports.debug = true;
  66. exports.serverPort = 3000;
  67. exports.sessionExpire = 1800;
  68. exports.showSQL= true;
  69. exports.wlyyDbConfig = wlyyDbConfig;
  70. exports.imDbConfig = imDbConfig;
  71. exports.redisConfig = redisConfig;
  72. exports.geTuiConfig = geTuiConfig;
  73. exports.geTuiAppStoreCfg = geTuiAppStoreCfg;
  74. exports.wlyyServerConfig = wlyyServerConfig;
  75. exports.transServerConfig = transServerConfig;
  76. exports.wechatConfig = wechatConfig;
  77. exports.sessionConfig = sessionConfig;