config.default.js 601 B

123456789101112131415161718192021222324252627282930
  1. 'use strict';
  2. module.exports = appInfo => {
  3. const config = exports = {};
  4. // use for cookie sign key, should change to your own and keep security
  5. config.keys = appInfo.name + '_1517455121740_7922';
  6. // add your config here
  7. // config.middleware = [];
  8. config.errorMongo = {
  9. details: true,
  10. };
  11. config.errorHanler = {
  12. details: true,
  13. };
  14. // mongoose config
  15. config.mongoose = {
  16. url: 'mongodb://localhost:27017/platform',
  17. options: {
  18. useMongoClient: true,
  19. user: 'root',
  20. pass: 'Ziyouyanfa#@!',
  21. authSource: 'admin',
  22. },
  23. };
  24. return config;
  25. };