1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 12:49:43 +02:00

fix: Provide default value for token expiration

This commit is contained in:
Maksim Eltyshev 2022-08-09 19:09:07 +02:00
parent 2b4c2b0f49
commit 0619a4e579

View file

@ -20,7 +20,7 @@ module.exports.custom = {
baseUrl: process.env.BASE_URL,
tokenExpiresIn: process.env.TOKEN_EXPIRES_IN,
tokenExpiresIn: parseInt(process.env.TOKEN_EXPIRES_IN, 10) || 365,
userAvatarsPath: path.join(sails.config.paths.public, 'user-avatars'),
userAvatarsUrl: `${process.env.BASE_URL}/user-avatars`,