[CORD-2742] Remove elements from the service graph
Change-Id: Ibcb9fac4428f0b168ff66fab3219b8357e732dc5
diff --git a/conf/proxy.js b/conf/proxy.js
index ad94635..387bd57 100644
--- a/conf/proxy.js
+++ b/conf/proxy.js
@@ -19,17 +19,27 @@
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 proxy = httpProxy.createProxyServer({
target: `http://${target}`,
ws: true
});
-
proxy.on('error', function(error, req, res) {
res.writeHead(500, {'Content-Type': 'text/plain'});
console.error('[Proxy]', error);
});
+const wsProxy = httpProxy.createProxyServer({
+ target: `http://${wsTarget}`,
+ ws: true
+});
+wsProxy.on('error', function(error, req, res) {
+ res.writeHead(500, {'Content-Type': 'text/plain'});
+ console.error('[Proxy]', error);
+});
+
module.exports = {
- proxy
+ proxy,
+ wsProxy
};
\ No newline at end of file