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.

14 lines
352 B

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