mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-18 07:55:10 +00:00
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:
parent
5bea58e501
commit
e81a7a8b46
1 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue