config.dev.js 1.7 KB

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