Add secret key to environment variables, update readme

This commit is contained in:
Maksim Eltyshev
2019-10-04 04:19:46 +05:00
parent 0eef38da66
commit 64acf0ac56
5 changed files with 13 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
TZ=UTC
BASE_URL=http://localhost:1337
DATABASE_URL=postgresql://localhost/planka
SECRET_KEY=notsecretkey

View File

@@ -222,6 +222,8 @@ module.exports = {
// secure: true,
maxAge: 24 * 60 * 60 * 1000, // 24 hours
},
secret: process.env.SECRET_KEY,
},
/**************************************************************************