config.prod.js 495 B

123456789101112131415161718192021
  1. 'use strict';
  2. module.exports = () => {
  3. const config = exports = {};
  4. config.dbName = 'question';
  5. config.mongoose = {
  6. url: `mongodb://localhost:27017/${config.dbName}`,
  7. options: {
  8. user: 'admin',
  9. pass: 'admin',
  10. authSource: 'admin',
  11. useNewUrlParser: true,
  12. useCreateIndex: true,
  13. },
  14. };
  15. config.export = {
  16. root_path: '/usr/local/workspace/server/service-file/upload',
  17. domain: 'http://127.0.0.1',
  18. };
  19. return config;
  20. };