From 1d365b6cf24614975dbe6b6243cd9846cef03c9a Mon Sep 17 00:00:00 2001 From: Seb Garwood Date: Wed, 14 Aug 2019 13:27:17 +0100 Subject: [PATCH] Allow injection of Frontend IP Address via environment variables Fixes #253 --- FrontEnd/config/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FrontEnd/config/index.js b/FrontEnd/config/index.js index a55a5e7..21de3c6 100644 --- a/FrontEnd/config/index.js +++ b/FrontEnd/config/index.js @@ -26,7 +26,7 @@ const config = { // ---------------------------------- // Server Configuration // ---------------------------------- - server_host : localip, // use string 'localhost' to prevent exposure on local network + server_host : process.env.FRONTEND_HOST || localip, // use string 'localhost' to prevent exposure on local network server_port : process.env.PORT || 3000, // ----------------------------------