From 9babb2ac7e74a560c0c330e94ca4bc6e5f9d1f73 Mon Sep 17 00:00:00 2001 From: whm <973418690@qq.com> Date: Tue, 17 Mar 2026 20:51:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20API=20=E5=AE=BF=E4=B8=BB=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E6=94=B9=E4=B8=BA=208088=EF=BC=8Cnginx=20?= =?UTF-8?q?=E5=8F=8D=E4=BB=A3=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made-with: Cursor --- nginx/README.md | 4 ++-- nginx/yuheng.yuxindazhineng.com.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx/README.md b/nginx/README.md index 669ab07..e5bbbf1 100644 --- a/nginx/README.md +++ b/nginx/README.md @@ -50,9 +50,9 @@ sudo systemctl reload nginx |----------|----------|------| | `https://yuheng.yuxindazhineng.com/` | 9528 | 前台 | | `https://yuheng.yuxindazhineng.com/admin/` | 9529 | 管理后台 | -| `https://yuheng.yuxindazhineng.com/api/` | 9537 | API | +| `https://yuheng.yuxindazhineng.com/api/` | 8088 | API | -确保 `docker compose` 已启动,且本机 9537、9528、9529 已监听。 +确保 `docker compose` 已启动,且本机 8088、9528、9529 已监听。 ## 4. 新服务器首次安装 Nginx diff --git a/nginx/yuheng.yuxindazhineng.com.conf b/nginx/yuheng.yuxindazhineng.com.conf index 2cfb00f..2a6cfa6 100644 --- a/nginx/yuheng.yuxindazhineng.com.conf +++ b/nginx/yuheng.yuxindazhineng.com.conf @@ -45,9 +45,9 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } - # API(宿主机端口 9537,与 9527 冲突时改用 9537) + # API(宿主机端口 8088) location /api/ { - proxy_pass http://127.0.0.1:9537/; + proxy_pass http://127.0.0.1:8088/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;