config.prod.js 985 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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/mission',
  13. options: {
  14. user: 'admin',
  15. pass: 'admin',
  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: 'platform',
  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,
  39. db: 0,
  40. },
  41. };
  42. config.project = {
  43. zhwl: 'http://127.0.0.1:4001',
  44. userAuth: 'http://127.0.0.1:4000',
  45. };
  46. return config;
  47. };