config.default.js 630 B

12345678910111213141516171819202122232425262728293031
  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. user: 'root',
  19. pass: 'Ziyouyanfa#@!',
  20. authSource: 'admin',
  21. useNewUrlParser: true,
  22. useCreateIndex: true,
  23. },
  24. };
  25. return config;
  26. };