config.default.js 686 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://root:Ziyouyanfa%23%40!@localhost:27017/naf?authSource=admin',
  17. url: 'mongodb://localhost:27017/platform',
  18. options: {
  19. useMongoClient: true,
  20. user: 'root',
  21. pass: 'Ziyouyanfa#@!',
  22. authSource: 'admin',
  23. },
  24. };
  25. return config;
  26. };