Guest User

Untitled

a guest
Aug 17th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. const path = require('path');
  2. const _ = require('lodash');
  3.  
  4. /**
  5. * Configuration settings for DB and application
  6. */
  7. const all = {
  8. // secrets used to encrypt session data
  9. secrets: {
  10. // this secret is used to encrypt express session logs as well as user password
  11. session: 'sample-secret'
  12. },
  13. // Mongo Db settings
  14. mongo: {
  15. // Connection data
  16. connection: {
  17. useMongoClient: true,
  18. uri: 'mongodb://<user>:<pwd>@databaseip:port/database'
  19. },
  20. // Mongo DB Options
  21. options: {
  22. db: {
  23. safe: true
  24. }
  25. }
  26. },
  27. // Application Roles
  28. userRoles: ['guest', 'user', 'admin'],
  29. };
  30.  
  31. // Export all settings
  32. module.exports = _.merge(
  33. all
  34. );
Add Comment
Please, Sign In to add comment