config.prod.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/train/auth';
  20. // mongoose config
  21. config.mongoose = {
  22. url: 'mongodb://127.0.0.1:27017/train',
  23. options: {
  24. user: 'admin',
  25. pass: 'admin',
  26. authSource: 'admin',
  27. useNewUrlParser: true,
  28. useCreateIndex: true,
  29. },
  30. };
  31. // mq配置
  32. config.amqp = {
  33. client: {
  34. hostname: '127.0.0.1',
  35. username: 'visit',
  36. password: 'visit',
  37. vhost: 'train',
  38. },
  39. app: true,
  40. agent: true,
  41. };
  42. // redis config
  43. config.redis = {
  44. client: {
  45. port: 6379, // Redis port
  46. host: '127.0.0.1', // Redis host
  47. password: 123456,
  48. db: 0,
  49. },
  50. };
  51. return config;
  52. };