From 1db1d989be48d243d14b19ceaade27b88a4843ec Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Mon, 20 Jan 2025 08:14:29 +0000 Subject: [PATCH] =?UTF-8?q?=E5=BE=88=E5=A4=9A=E5=B0=8F=E4=BC=99=E4=BC=B4?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E9=83=A8=E7=BD=B2=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?8088=20=E4=B8=8D=E6=94=B9=E6=88=908008=20=E6=89=80=E4=BB=A5?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: java110 <928255095@qq.com> --- app.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app.js b/app.js index 59334d335..e67cb735c 100644 --- a/app.js +++ b/app.js @@ -40,20 +40,20 @@ let opts = { } // todo 测试环境 测试使用,生产环境请用nginx代理 -app.use('/callComponent', proxy('http://192.168.100.108:8088', opts)); -app.use('/app', proxy('http://192.168.100.108:8088', opts)); -app.use('/ws', createProxyMiddleware({ - target: 'http://192.168.100.108:8008', - changeOrigin: true, - ws: true -})); +// app.use('/callComponent', proxy('http://192.168.100.108:8088', opts)); +// app.use('/app', proxy('http://192.168.100.108:8088', opts)); +// app.use('/ws', createProxyMiddleware({ +// target: 'http://192.168.100.108:8008', +// changeOrigin: true, +// ws: true +// })); // todo 本机 开发用,生产环境请用nginx代理 -// app.use('/ws', proxy('http://127.0.0.1:8008', opts)); -// 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://127.0.0.1:8008', opts)); +app.use('/app', proxy('http://127.0.0.1:8008', opts)); //app.listen(3000); app.use(express.json());