mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
fix: Provide default value for token expiration
This commit is contained in:
parent
2b4c2b0f49
commit
0619a4e579
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module.exports.custom = {
|
||||||
|
|
||||||
baseUrl: process.env.BASE_URL,
|
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'),
|
userAvatarsPath: path.join(sails.config.paths.public, 'user-avatars'),
|
||||||
userAvatarsUrl: `${process.env.BASE_URL}/user-avatars`,
|
userAvatarsUrl: `${process.env.BASE_URL}/user-avatars`,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue