From 6c49b26acff4f813442e3b8b60bfae6077971f7a Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Tue, 10 Mar 2020 18:00:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=89=8D=E6=AE=B5=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 12 ++++++++---- public/user.html | 12 ++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 228ba6846..579ab7834 100644 --- a/app.js +++ b/app.js @@ -17,10 +17,14 @@ app.set('view engine', 'jade'); app.use(logger('dev')); -app.use('/callComponent', createProxyMiddleware({ - target: 'http://192.168.0.104:8443', // 目标代理地址 - changeOrigin: true -})); +let option = createProxyMiddleware({ + target: 'http://hc.demo.winqi.cn:8012', // 目标代理地址 + changeOrigin: true, + logLevel: "debug" +}); + +app.use('/callComponent', option); + app.use(express.json()); app.use(express.urlencoded({ extended: false })); app.use(cookieParser()); diff --git a/public/user.html b/public/user.html index be4ad99a4..55c67f0f4 100644 --- a/public/user.html +++ b/public/user.html @@ -13,6 +13,18 @@