config.prod.js 776 B

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