Guest User

Untitled

a guest
Jan 14th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // adapter: 'redis',
  2.  
  3. // host: 'localhost',
  4. // port: 6379,
  5. // ttl: <redis session TTL in seconds>,
  6. // db: 0,
  7. // pass: <redis auth password>,
  8. // prefix: 'sess:',
  9.  
  10. npm install connect-mongo --save
  11.  
  12. adapter: 'connect-mongo',
  13.  
  14. url: 'mongodb://user:pass@host:port/database',
  15. collection: 'sessions',
  16. auto_reconnect: false,
  17. ssl: false,
  18. stringify: true
Add Comment
Please, Sign In to add comment