config.local.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. appSecret: 'ceb7f0986c76f227ae3049934c313f22',
  11. baseUrl: 'http://wx.cc-lotus.info', // 微信网关地址
  12. mchid: '1505364491', // 商户ID
  13. mchkey: '1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik9', // 商户key
  14. wxurl: 'http://broadcast.waityou24.cn/api/visit/wxpayback',
  15. payurl: 'https://api.mch.weixin.qq.com/pay/unifiedorder',
  16. };
  17. // 服务器发布路径
  18. config.baseUrl = 'http://broadcast.waityou24.cn';
  19. // 认证回调地址
  20. config.authUrl = '/api/visit/auth';
  21. // mq config
  22. config.amqp = {
  23. client: {
  24. hostname: '127.0.0.1',
  25. username: 'visit',
  26. password: 'visit',
  27. vhost: 'visit',
  28. },
  29. app: true,
  30. agent: true,
  31. };
  32. // redis config
  33. config.redis = {
  34. client: {
  35. port: 6379, // Redis port
  36. host: '127.0.0.1', // Redis host
  37. password: 123456,
  38. db: 0,
  39. },
  40. };
  41. config.mongoose = {
  42. url: 'mongodb://localhost:27017/visit',
  43. options: {
  44. // user: 'admin',
  45. // pass: 'admin',
  46. // authSource: 'admin',
  47. // useNewUrlParser: true,
  48. // useCreateIndex: true,
  49. // useUnifiedTopology: true,
  50. },
  51. };
  52. return config;
  53. };