[CORD-1232] Filtering events based on updated properies
Change-Id: If96da2f5c987f487b4d8b9ec7c68e44869cb4e12
diff --git a/conf/proxy.js b/conf/proxy.js
index 8af184d..d45a27b 100644
--- a/conf/proxy.js
+++ b/conf/proxy.js
@@ -3,21 +3,34 @@
const target = process.env.PROXY || '192.168.46.100';
const proxy = httpProxy.createProxyServer({
- target: `http://${target}:9101`
+ target: `http://${target}`
});
const extensionsProxy = httpProxy.createProxyServer({
target: `http://${target}/xos/`
});
+const socketProxy = httpProxy.createProxyServer({
+ target: `http://${target}/`
+});
+
proxy.on('error', function(error, req, res) {
- res.writeHead(500, {
- 'Content-Type': 'text/plain'
- });
+ res.writeHead(500, {'Content-Type': 'text/plain'});
console.error('[Proxy]', error);
});
+extensionsProxy.on('error', function(error, req, res) {
+ res.writeHead(500, {'Content-Type': 'text/plain'});
+ console.error('[extensionsProxy]', error);
+});
+
+socketProxy.on('error', function(error, req, res) {
+ res.writeHead(500, {'Content-Type': 'text/plain'});
+ console.error('[socketProxy]', error);
+});
+
module.exports = {
proxy,
- extensionsProxy
+ extensionsProxy,
+ socketProxy
};
\ No newline at end of file