config.prod.js 687 B

12345678910111213141516171819202122232425262728293031323334
  1. 'use strict';
  2. module.exports = () => {
  3. const config = exports = {};
  4. config.logger = {
  5. level: 'INFO',
  6. consoleLevel: 'INFO',
  7. };
  8. config.dbName = 'new-platform';
  9. config.mongoose = {
  10. url: `mongodb://localhost:27017/${config.dbName}`,
  11. options: {
  12. user: 'admin',
  13. pass: 'admin',
  14. authSource: 'admin',
  15. useNewUrlParser: true,
  16. useCreateIndex: true,
  17. },
  18. };
  19. // redis config
  20. config.redis = {
  21. client: {
  22. port: 6379, // Redis port
  23. host: '127.0.0.1', // Redis host
  24. password: 123456,
  25. db: 0,
  26. },
  27. };
  28. config.export = {
  29. root_path: 'D:\\workspace\\service\\service-file\\upload\\',
  30. };
  31. return config;
  32. };