From dec3e1ea923c762c9a09fd9963443b956f739f82 Mon Sep 17 00:00:00 2001 From: ljmeng Date: Sat, 16 Mar 2024 18:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/nginx.conf | 2 +- public/service.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/nginx.conf b/public/nginx.conf index aa67267a..61a6ce19 100644 --- a/public/nginx.conf +++ b/public/nginx.conf @@ -77,7 +77,7 @@ http { } location /cookiecloud { - # 后端API + # 后端cookiecloud地址 proxy_pass http://backend_api; rewrite ^.+mock-server/?(.*)$ /$1 break; proxy_http_version 1.1; diff --git a/public/service.js b/public/service.js index cab84642..9f11d558 100644 --- a/public/service.js +++ b/public/service.js @@ -29,7 +29,7 @@ app.use( app.use( '/cookiecloud', proxy(`${proxyConfig.URL}:${proxyConfig.PORT}`, { - // 路径加上 /api 前缀 + // 路径加上 /cookiecloud 前缀 proxyReqPathResolver: (req) => { return `/cookiecloud${req.url}` }