config.prod.js 777 B

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