config.prod.js 855 B

123456789101112131415161718192021222324252627282930313233343536373839
  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:\\free\\workspace\\server\\service-file\\upload',
  30. domain: 'http://127.0.0.1',
  31. };
  32. config.import = {
  33. root_path: 'D:\\free\\workspace\\server\\service-file\\upload',
  34. };
  35. return config;
  36. };