default value for JWT expire is 30m instead of 10m

Read value for JWT expire in `.env.template`
new config version v4
This commit is contained in:
Ulf Gebhardt 2022-04-06 13:55:49 +02:00
parent 5880df2de0
commit 0565c0c255
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
CONFIG_VERSION=v3.2022-03-29
CONFIG_VERSION=v4.2022-04-05
# Server
PORT=4000
JWT_SECRET=secret123
JWT_EXPIRES_IN=10m
JWT_EXPIRES_IN=30m
GRAPHIQL=false
GDT_API_URL=https://gdt.gradido.net

View File

@ -2,7 +2,7 @@ CONFIG_VERSION=$BACKEND_CONFIG_VERSION
# Server
JWT_SECRET=$JWT_SECRET
JWT_EXPIRES_IN=10m
JWT_EXPIRES_IN=$JWT_EXPIRES_IN
GRAPHIQL=false
GDT_API_URL=$GDT_API_URL

View File

@ -14,7 +14,7 @@ const constants = {
DECAY_START_TIME: new Date('2021-05-13 17:46:31'), // GMT+0
CONFIG_VERSION: {
DEFAULT: 'DEFAULT',
EXPECTED: 'v3.2022-03-29',
EXPECTED: 'v4.2022-04-05',
CURRENT: '',
},
}
@ -22,7 +22,7 @@ const constants = {
const server = {
PORT: process.env.PORT || 4000,
JWT_SECRET: process.env.JWT_SECRET || 'secret123',
JWT_EXPIRES_IN: process.env.JWT_EXPIRES_IN || '10m',
JWT_EXPIRES_IN: process.env.JWT_EXPIRES_IN || '30m',
GRAPHIQL: process.env.GRAPHIQL === 'true' || false,
GDT_API_URL: process.env.GDT_API_URL || 'https://gdt.gradido.net',
PRODUCTION: process.env.NODE_ENV === 'production' || false,