Use settings instead of hard-coding ports

This commit is contained in:
Alasdair Smith 2018-10-09 11:23:21 +01:00
parent 8f8765a412
commit 98d35b4e50

View file

@ -91,7 +91,7 @@ module.exports = settings =
# running which conflict, or want to run the web process on port 80. # running which conflict, or want to run the web process on port 80.
internal: internal:
web: web:
port: webPort = 3000 port: webPort = process.env['WEB_PORT'] or 3000
host: process.env['LISTEN_ADDRESS'] or 'localhost' host: process.env['LISTEN_ADDRESS'] or 'localhost'
documentupdater: documentupdater:
port: docUpdaterPort = 3003 port: docUpdaterPort = 3003
@ -192,7 +192,7 @@ module.exports = settings =
#clsiCookieKey: "clsiserver" #clsiCookieKey: "clsiserver"
# Same, but with http auth credentials. # Same, but with http auth credentials.
httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000' httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@#{siteUrl}'
maxEntitiesPerProject: 2000 maxEntitiesPerProject: 2000