config.local.js 1.4 KB

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