[CORD-2869] Adding service status dropdown
Change-Id: I8faa6d96f202fc097cc12df87e1825d7dff2852f
diff --git a/conf/proxy.js b/conf/proxy.js
index 387bd57..fa0c1a7 100644
--- a/conf/proxy.js
+++ b/conf/proxy.js
@@ -19,7 +19,7 @@
const httpProxy = require('http-proxy');
const target = process.env.PROXY || '127.0.0.1:9101';
-const wsTarget = process.env.WS || '127.0.0.1:3000';
+const wsTarget = process.env.WS || target || '127.0.0.1:3000';
const proxy = httpProxy.createProxyServer({
target: `http://${target}`,
@@ -36,7 +36,7 @@
});
wsProxy.on('error', function(error, req, res) {
res.writeHead(500, {'Content-Type': 'text/plain'});
- console.error('[Proxy]', error);
+ console.error('[wsProxy]', error);
});
module.exports = {