From 98d35b4e50e2650d89c40b71a2798d2a537523a7 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Tue, 9 Oct 2018 11:23:21 +0100 Subject: [PATCH] Use settings instead of hard-coding ports --- services/web/config/settings.defaults.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/config/settings.defaults.coffee b/services/web/config/settings.defaults.coffee index 9097c4e433..5136ef19f2 100644 --- a/services/web/config/settings.defaults.coffee +++ b/services/web/config/settings.defaults.coffee @@ -91,7 +91,7 @@ module.exports = settings = # running which conflict, or want to run the web process on port 80. internal: web: - port: webPort = 3000 + port: webPort = process.env['WEB_PORT'] or 3000 host: process.env['LISTEN_ADDRESS'] or 'localhost' documentupdater: port: docUpdaterPort = 3003 @@ -192,7 +192,7 @@ module.exports = settings = #clsiCookieKey: "clsiserver" # Same, but with http auth credentials. - httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000' + httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@#{siteUrl}' maxEntitiesPerProject: 2000