config.prod.js 509 B

12345678910111213141516171819202122232425262728293031
  1. 'use strict';
  2. module.exports = () => {
  3. const config = exports = {};
  4. // add your config here
  5. config.cluster = {
  6. listen: {
  7. port: 8002,
  8. },
  9. };
  10. // mongoose config
  11. config.mongoose = {
  12. url: 'mongodb://localhost:27018/naf',
  13. options: {
  14. user: 'root',
  15. pass: 'Ziyouyanfa#@!',
  16. authSource: 'admin',
  17. useNewUrlParser: true,
  18. useCreateIndex: true,
  19. },
  20. };
  21. config.logger = {
  22. // level: 'DEBUG',
  23. // consoleLevel: 'DEBUG',
  24. };
  25. return config;
  26. };