When listenPort is not specified, use 48484 as default

Should only be relevant in really old OS versions, but still this is the correct default.

Fixes #439

Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
Pablo Carranza Velez 2017-11-23 14:08:32 -08:00
parent f1b6165650
commit 21a9bb4e82

View File

@ -7,7 +7,7 @@ apiEndpoint = checkString(process.env.API_ENDPOINT)
module.exports =
apiEndpoint: apiEndpoint
apiTimeout: checkInt(process.env.API_TIMEOUT, positive: true) ? 15 * 60 * 1000
listenPort: checkInt(process.env.LISTEN_PORT, positive: true) ? 80
listenPort: checkInt(process.env.LISTEN_PORT, positive: true) ? 48484
gosuperAddress: "http://unix:#{process.env.GOSUPER_SOCKET}:"
deltaHost: checkString(process.env.DELTA_ENDPOINT) ? 'https://delta.resin.io'
registryEndpoint: checkString(process.env.REGISTRY_ENDPOINT) ? 'registry.resin.io'