config.prod.js 909 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/mission',
  11. options: {
  12. user: 'admin',
  13. pass: 'admin',
  14. authSource: 'admin',
  15. useUnifiedTopology: true,
  16. useNewUrlParser: true,
  17. useCreateIndex: true,
  18. },
  19. };
  20. // mq配置
  21. config.amqp = {
  22. client: {
  23. hostname: '127.0.0.1',
  24. username: 'visit',
  25. password: 'visit',
  26. vhost: 'platform',
  27. },
  28. app: true,
  29. agent: true,
  30. };
  31. // redis config
  32. config.redis = {
  33. client: {
  34. port: 6379, // Redis port
  35. host: '127.0.0.1', // Redis host
  36. password: 123456,
  37. db: 0,
  38. },
  39. };
  40. config.project = {
  41. zhwl: 'http://127.0.0.1:4001',
  42. userAuth: 'http://127.0.0.1:4000',
  43. };
  44. return config;
  45. };