config.default.js 586 B

12345678910111213141516171819202122232425
  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. // mongoose config
  9. config.mongoose = {
  10. // url: 'mongodb://root:Ziyouyanfa%23%40!@localhost:27017/naf?authSource=admin',
  11. url: 'mongodb://localhost:27017/platform',
  12. options: {
  13. useMongoClient: true,
  14. user: 'root',
  15. pass: 'Ziyouyanfa#@!',
  16. authSource: 'admin',
  17. },
  18. };
  19. return config;
  20. };