mirror of
https://github.com/MaciejkaG/statki.git
synced 2024-11-30 01:22:56 +01:00
Added an option for secure cookies
This commit is contained in:
parent
0c4448404c
commit
ef23080666
1
index.js
1
index.js
@ -37,6 +37,7 @@ const sessionMiddleware = session({
|
|||||||
secret: uuidv4(),
|
secret: uuidv4(),
|
||||||
resave: true,
|
resave: true,
|
||||||
saveUninitialized: true,
|
saveUninitialized: true,
|
||||||
|
cookie: { secure: process.env.cookie_secure === "true" ? true : false }
|
||||||
});
|
});
|
||||||
|
|
||||||
app.use(sessionMiddleware);
|
app.use(sessionMiddleware);
|
||||||
|
Loading…
Reference in New Issue
Block a user