Reading subscribers and not removing tenants
Change-Id: I942c05d8a511d1f9f67f0b628c62ccd0242ac921
diff --git a/xos/gui/conf/proxy.js b/xos/gui/conf/proxy.js
index c410f04..aeed199 100644
--- a/xos/gui/conf/proxy.js
+++ b/xos/gui/conf/proxy.js
@@ -1,11 +1,13 @@
const httpProxy = require('http-proxy');
+const target = process.env.PROXY || '192.168.46.100';
+
const apiProxy = httpProxy.createProxyServer({
- target: 'http://192.168.46.100:9101'
+ target: `http://${target}`
});
const staticFilesProxy = httpProxy.createProxyServer({
- target: 'http://192.168.46.100/spa'
+ target: `http://${target}/spa`
});
apiProxy.on('error', (error, req, res) => {