This commit is contained in:
Stachu 2023-03-14 21:03:24 +01:00
commit c3d013d6b8
2 changed files with 2 additions and 1 deletions

View File

@ -6,3 +6,4 @@
DB_HOST=localhost DB_HOST=localhost
DB_PORT=5432 DB_PORT=5432
DB_NAME=skrytka DB_NAME=skrytka
# COOKIE_SECRET=SOMESECRET

2
app.js
View File

@ -56,7 +56,7 @@ app.use(session({
pgPromise: db, pgPromise: db,
tableName: 'user_session' tableName: 'user_session'
}), }),
secret: 'tujakistajnysekretnietakijakto', secret: `${process.env.COOKIE_SECRET}`,
resave: false, resave: false,
saveUninitialized: false, saveUninitialized: false,
cookie: { cookie: {