Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
2333tracy authored Dec 11, 2020
1 parent 108ebde commit 269a0af
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,9 @@ var port = process.env.PORT || 8121;
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());

// const redisClient = require('./db/redis')
// const sessionStore = new RedisStore({
// client: redisClient
// })
app.use(session({
secret: 'WJiol#23123_',
cookie: {
// path: '/', // 默认配置
// httpOnly: true, // 默认配置
maxAge: 24 * 60 * 60 * 1000
}
}))
Expand Down

0 comments on commit 269a0af

Please sign in to comment.