config.prod.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. 'use strict';
  2. module.exports = () => {
  3. const config = (exports = {});
  4. config.logger = {
  5. level: 'DEBUG',
  6. consoleLevel: 'DEBUG',
  7. };
  8. // 导出配置
  9. config.cdn = {
  10. repos_root_path: '/home/service/service-file/upload',
  11. repos_root_url_excel: '/excel/',
  12. repos_root_url_experience: '/experience/',
  13. repos_root_url_zip: '/zip/',
  14. };
  15. config.wxapi = {
  16. appid: 'wxd2e28415cb866c0b', // 微信公众号APPID
  17. baseUrl: 'http://www.jilinjobswx.cn', // 微信网关地址
  18. sendDirMq: 'http://www.jilinjobswx.cn/api.weixin.qq.com/cgi-bin/message/template/send?appid=',
  19. };
  20. // 签到小程序
  21. config.wxapp = {
  22. appid: 'wx3b5ac763ada73e0e',
  23. secret: '0f30fcbb9ad45697800611ad4af585bb',
  24. grant_type: 'authorization_code',
  25. };
  26. // 服务器发布路径
  27. config.baseUrl = 'http://jytz.jilinjobs.cn';
  28. // 认证回调地址
  29. config.authUrl = '/api/train/auth';
  30. // 消息模板
  31. // mongoose config
  32. config.mongoose = {
  33. url: 'mongodb://127.0.0.1:27017/train',
  34. options: {
  35. user: 'admin',
  36. pass: 'admin', // jljyzx-wwqcgh
  37. authSource: 'admin',
  38. useUnifiedTopology: true,
  39. useNewUrlParser: true,
  40. useCreateIndex: true,
  41. },
  42. };
  43. // mq配置
  44. config.amqp = {
  45. client: {
  46. hostname: '127.0.0.1',
  47. username: 'visit',
  48. password: 'visit',
  49. vhost: 'train',
  50. },
  51. app: true,
  52. agent: true,
  53. };
  54. // redis config
  55. config.redis = {
  56. client: {
  57. port: 6379, // Redis port
  58. host: '127.0.0.1', // Redis host
  59. password: '', // jljyzx-wwqcgh
  60. db: 0,
  61. },
  62. };
  63. config.yunjiuye = {
  64. toBindPage: 'https://jytz.jilinjobs.cn/y/', // 云就业绑定页面
  65. toDealTokenPage: 'https://jytz.jilinjobs.cn/y/deal', // 云就业免登录处理token路由
  66. };
  67. return config;
  68. };