config.prod.js 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. 'use strict';
  2. module.exports = () => {
  3. const config = (exports = {});
  4. config.logger = {
  5. level: 'INFO',
  6. consoleLevel: 'INFO',
  7. };
  8. config.dbName = 'platform-v1';
  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: '/usr/local/workspace/server/service-file/upload',
  30. export_path: '/usr/local/workspace/server/service-file/upload/export',
  31. export_dir: 'export',
  32. patentInfo_dir: 'patentInfo',
  33. domain: 'http://127.0.0.1',
  34. };
  35. config.import = {
  36. root_path: '/usr/local/workspace/server/service-file/upload',
  37. };
  38. return config;
  39. };