config.local.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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: 'admin',
  49. pass: 'admin',
  50. authSource: 'admin',
  51. useNewUrlParser: true,
  52. useCreateIndex: true,
  53. useUnifiedTopology: true,
  54. },
  55. };
  56. config.yunjiuye = {
  57. toBindPage: 'http://127.0.0.1:8008/y/', // 云就业绑定页面
  58. toDealTokenPage: 'http://127.0.0.1:8008/y/deal', // 云就业免登录处理token路由
  59. };
  60. return config;
  61. };