config.prod.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. 'use strict';
  2. module.exports = () => {
  3. const config = (exports = {});
  4. config.logger = {
  5. level: 'INFO',
  6. consoleLevel: 'INFO',
  7. };
  8. // http请求前缀
  9. config.httpPrefix = {
  10. wechat: 'http://localhost:14001/wechat/api',
  11. };
  12. // config.dbName = 'new-platform';
  13. // config.mongoose = {
  14. // url: `mongodb://localhost:27017/${config.dbName}`,
  15. // options: {
  16. // user: 'admin',
  17. // pass: 'admin',
  18. // authSource: 'admin',
  19. // useNewUrlParser: true,
  20. // useCreateIndex: true,
  21. // },
  22. // };
  23. // // redis config
  24. // config.redis = {
  25. // client: {
  26. // port: 6379, // Redis port
  27. // host: '127.0.0.1', // Redis host
  28. // password: 123456,
  29. // db: 0,
  30. // },
  31. // };
  32. // config.export = {
  33. // root_path: 'D:\\free\\workspace\\server\\service-file\\upload',
  34. // export_path: 'D:\\free\\workspace\\server\\service-file\\upload\\export',
  35. // export_dir: 'export',
  36. // patentInfo_dir: 'patentInfo',
  37. // domain: 'http://127.0.0.1',
  38. // };
  39. // config.import = {
  40. // root_path: 'D:\\free\\workspace\\server\\service-file\\upload',
  41. // };
  42. return config;
  43. };