config.local.js 1.5 KB

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