config.local.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. 'use strict';
  2. module.exports = () => {
  3. const config = (exports = {});
  4. config.logger = {
  5. level: 'DEBUG',
  6. consoleLevel: 'DEBUG',
  7. };
  8. config.wxapi = {
  9. appid: 'wxdf3ed83c095be97a', // 微信公众号APPID
  10. baseUrl: 'http://wx.cc-lotus.info', // 微信网关地址
  11. mchid: '1505364491', // 商户ID
  12. mchkey: '1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik9', // 商户key
  13. wxurl: 'http://free.liaoningdoupo.com/api/wxpayback',
  14. payurl: 'https://api.mch.weixin.qq.com/pay/unifiedorder',
  15. };
  16. // 服务器发布路径
  17. config.baseUrl = 'http://free.liaoningdoupo.com';
  18. // 认证回调地址
  19. config.authUrl = '/api/auth';
  20. // mq config
  21. config.amqp = {
  22. client: {
  23. hostname: '127.0.0.1',
  24. username: 'wy',
  25. password: '1',
  26. vhost: 'smart',
  27. },
  28. app: true,
  29. agent: true,
  30. };
  31. // redis config
  32. config.redis = {
  33. client: {
  34. port: 6379, // Redis port
  35. host: '127.0.0.1', // Redis host
  36. password: null,
  37. db: 0,
  38. },
  39. };
  40. config.mongoose = {
  41. url: 'mongodb://localhost:27017/train',
  42. options: {
  43. user: 'demo',
  44. pass: 'demo',
  45. authSource: 'admin',
  46. useNewUrlParser: true,
  47. useCreateIndex: true,
  48. useUnifiedTopology: true,
  49. },
  50. };
  51. return config;
  52. };