diff --git a/app.js b/app.js index 137f52056..13805669e 100755 --- a/app.js +++ b/app.js @@ -40,28 +40,15 @@ let opts = { } -app.use('/callComponent', proxy('http://192.168.100.108:8088', opts)); -app.use('/app', proxy('http://192.168.100.108:8088', opts)); +app.use('/callComponent', proxy('http://127.0.0.1:8088', opts)); +app.use('/app', proxy('http://127.0.0.1:8088', opts)); app.use('/ws', createProxyMiddleware({ - target: 'http://192.168.100.108:8008', + target: 'http://127.0.0.1:8008', changeOrigin: true, ws: true })); - -// app.use('/callComponent', proxy('http://127.0.0.1:8008', opts)); -// app.use('/app', proxy('http://127.0.0.1:8008', opts)); -// app.use('/ws', proxy('http://127.0.0.1:8008', opts)); -// app.use('/callComponent',proxy('http://192.168.1.106:8012',opts)); -// app.use('/app',proxy('http://192.168.1.106:8012',opts)); - -// app.use('/callComponent', proxy('http://47.106.15.126:8088', opts)); -// app.use('/app', proxy('http://47.106.15.126:8088', opts)); - -// app.use('/callComponent',proxy('http://192.168.100.108:8008',opts)); -// app.use('/app',proxy('http://192.168.100.108:8008',opts)); - //app.listen(3000); app.use(express.json()); app.use(express.urlencoded({ extended: false }));