Update port number config

Discovered that env-var will validate port numbers, which is nice

Signed-off-by: James Taylor <jamest@uk.ibm.com>
This commit is contained in:
James Taylor 2021-08-05 12:39:24 +01:00
parent 5bea58e501
commit e81a7a8b46

View file

@ -13,7 +13,7 @@ export const port = env
.get('PORT')
.default('3000')
.example('3000')
.asIntPositive();
.asPortNumber();
export const retryDelay = env
.get('RETRY_DELAY')
@ -123,7 +123,7 @@ export const redisPort = env
.get('REDIS_PORT')
.default('6379')
.example('6379')
.asIntPositive();
.asPortNumber();
export const redisUsername = env
.get('REDIS_USERNAME')