From ba28c005f3c2a36fc347f843faae486cfabe7a53 Mon Sep 17 00:00:00 2001 From: zhangangs Date: Sun, 31 Mar 2024 07:02:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8D=E8=83=BD=E6=88=90=E5=8A=9F=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E5=90=8E=E5=8F=B0API=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#149)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新配置文件不能成功代理后台API接口地址问题 --- guide/deploy.md | 1 + 1 file changed, 1 insertion(+) diff --git a/guide/deploy.md b/guide/deploy.md index ae6c5863..0e4b24b5 100644 --- a/guide/deploy.md +++ b/guide/deploy.md @@ -267,6 +267,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # 后台接口地址 proxy_pass http://110.110.1.1:8080/api; + rewrite "^/api/(.*)$" /$1 break; proxy_redirect default; add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers X-Requested-With;