config.prod.js 656 B

12345678910111213141516171819202122232425262728293031
  1. 'use strict';
  2. module.exports = () => {
  3. const config = (exports = {});
  4. config.dbServer = {
  5. ip: '127.0.0.1',
  6. port: '6101',
  7. };
  8. config.dbName = 'baoan-exam';
  9. config.mongoose = {
  10. url: `mongodb://localhost:27017/${config.dbName}`,
  11. options: {
  12. user: 'c##baoandba',
  13. pass: 'baoan2021',
  14. authSource: 'admin',
  15. useNewUrlParser: true,
  16. useCreateIndex: true,
  17. },
  18. };
  19. config.filesConfig = {
  20. root_path: '/usr/workspace/server/service-file/upload',
  21. project: 'exam',
  22. export_dir: 'export',
  23. };
  24. // 服务设置
  25. config.middleServer = {
  26. ip: '127.0.0.1',
  27. port: '6101',
  28. };
  29. return config;
  30. };