The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
328 B

6 years ago
6 years ago
6 years ago
  1. const session = require("express-session")
  2. const config = require("../config")
  3. var RedisStore = require('connect-redis')(session);
  4. module.exports = session({
  5. secret: config.session.secret,
  6. store: new RedisStore(config.redis),
  7. cookie: {
  8. secure: config.session.secure
  9. },
  10. resave: false,
  11. saveUninitialized: true,
  12. })