config.dev.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. "use strict";
  2. // 三师后台数据库配置
  3. let wlyyDbConfig = {
  4. host: '172.19.103.77',
  5. user: 'root',
  6. password: '123456',
  7. database: 'ydf',
  8. connectionLimit: '50'
  9. };
  10. // IM数据库配置
  11. let imDbConfig = {
  12. host: '172.19.103.77',
  13. user: 'root',
  14. password: '123456',
  15. database: 'ydf',
  16. connectionLimit: '50',
  17. charset : 'utf8mb4'
  18. };
  19. // 三师后台
  20. let wlyyServerConfig = {
  21. host: '172.19.103.31',
  22. port: 10000
  23. };
  24. // 透传服务
  25. let transServerConfig = {
  26. host: '172.19.103.76',
  27. port: 8000
  28. };
  29. // 企业版的推送配置
  30. let geTuiConfig = {
  31. HOST: 'https://api.getui.com/apiex.htm',
  32. APPID: 'qWmRh2X88l7HuE36z3qBe8',
  33. APPKEY: 'EzERfV8c849lBkZqHWzQG1',
  34. MASTERSECRET: 'veXiajQrId6iojy7Qv8kZ2'
  35. };
  36. // AppStore版的推送App配置
  37. let geTuiAppStoreCfg = {
  38. HOST: 'https://api.getui.com/apiex.htm',
  39. APPID: 'H6FYbDejks6VjMmW3uH7V6',
  40. APPKEY: '0PFWlKmLBN9YzhCfFWVgYA',
  41. MASTERSECRET: 'pvjCGtRZJx9SRVODkxc816'
  42. };
  43. // 微信配置
  44. let wechatConfig = {
  45. appId: 'wxd03f859efdf0873d'
  46. , appSecret: '2935b54b53a957d9516c920a544f2537'
  47. , token: '27eb3bb24f149a7760cf1bb154b08040'
  48. , baseUrl: 'weixin.xmtyw.cn/wlyy'
  49. , template: {
  50. // 咨询回复模板
  51. consultTemplate: 'qSOW0DBxO3qEBm4ucG0Ial0jxsOyD7_f2TFK5e-mQEc'
  52. }
  53. };
  54. exports.app = 'IM.Server';
  55. exports.version = '1.2.7';
  56. exports.debug = true;
  57. exports.serverPort = 3000;
  58. exports.sessionExpire = 1800;
  59. exports.showSQL = true;
  60. exports.wlyyDbConfig = wlyyDbConfig;
  61. exports.imDbConfig = imDbConfig;
  62. exports.geTuiConfig = geTuiConfig;
  63. exports.geTuiAppStoreCfg = geTuiAppStoreCfg;
  64. exports.wlyyServerConfig = wlyyServerConfig;
  65. exports.transServerConfig = transServerConfig;
  66. exports.wechatConfig = wechatConfig;