From 3199fb6023e88d9ef3c02865db717d80349ac385 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Thu, 5 Jan 2023 06:40:18 +0000 Subject: [PATCH] =?UTF-8?q?1.4=E7=89=88=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: java110 <928255095@qq.com> --- app.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) 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 }));