config.prod.js 915 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. 'use strict';
  2. module.exports = () => {
  3. const config = (exports = {});
  4. config.logger = {
  5. level: 'DEBUG',
  6. consoleLevel: 'DEBUG',
  7. };
  8. // 服务器发布路径
  9. config.baseUrl = 'http://jytz.jilinjobs.cn';
  10. // mongoose config
  11. config.mongoose = {
  12. url: 'mongodb://127.0.0.1:27017/train',
  13. options: {
  14. user: 'admin',
  15. pass: 'admin', // jljyzx-wwqcgh
  16. authSource: 'admin',
  17. useUnifiedTopology: true,
  18. useNewUrlParser: true,
  19. useCreateIndex: true,
  20. },
  21. };
  22. // mq配置
  23. config.amqp = {
  24. client: {
  25. hostname: '127.0.0.1',
  26. username: 'visit',
  27. password: 'visit',
  28. vhost: 'train',
  29. },
  30. app: true,
  31. agent: true,
  32. };
  33. // redis config
  34. config.redis = {
  35. client: {
  36. port: 6379, // Redis port
  37. host: '127.0.0.1', // Redis host
  38. password: '123456', // jljyzx-wwqcgh
  39. db: 0,
  40. },
  41. };
  42. return config;
  43. };