config.default.js 782 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 + '_1516694643431_7736';
  6. // add your config here
  7. // config.middleware = [ ];
  8. config.errorMongo = {
  9. details: true,
  10. };
  11. config.errorHanler = {
  12. details: true,
  13. };
  14. config.cluster = {
  15. listen: {
  16. port: 9002,
  17. },
  18. };
  19. // mongoose config
  20. config.mongoose = {
  21. url: 'mongodb://localhost:27018/naf',
  22. options: {
  23. // user: 'root',
  24. // pass: 'cms@cc-lotus',
  25. // authSource: 'admin',
  26. // useNewUrlParser: true,
  27. // useCreateIndex: true,
  28. },
  29. };
  30. config.logger = {
  31. // level: 'DEBUG',
  32. consoleLevel: 'DEBUG',
  33. };
  34. return config;
  35. };