mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
Add a config var to determine what port for the api to listen on.
This commit is contained in:
parent
644ad14295
commit
c8023e0780
@ -33,8 +33,8 @@ knex.init.then ->
|
||||
application = require './application'
|
||||
|
||||
console.log('Starting API server..')
|
||||
api.listen(80)
|
||||
|
||||
api.listen(config.listenPort)
|
||||
|
||||
console.log('Starting Apps..')
|
||||
knex('app').select()
|
||||
.then (apps) ->
|
||||
|
@ -9,6 +9,7 @@ checkInt = (s) ->
|
||||
|
||||
module.exports = config =
|
||||
apiEndpoint: process.env.API_ENDPOINT ? 'https://api.resin.io'
|
||||
listenPort: process.env.LISTEN_PORT ? 80
|
||||
registryEndpoint: process.env.REGISTRY_ENDPOINT ? 'registry.resin.io'
|
||||
pubnub:
|
||||
subscribe_key: process.env.PUBNUB_SUBSCRIBE_KEY ? 'sub-c-bananas'
|
||||
|
Loading…
Reference in New Issue
Block a user