diff --git a/nginx/README.md b/nginx/README.md index e29ad83..669ab07 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/` | 9527 | API | +| `https://yuheng.yuxindazhineng.com/api/` | 9537 | API | -确保 `docker compose` 已启动,且本机 9527、9528、9529 已监听。 +确保 `docker compose` 已启动,且本机 9537、9528、9529 已监听。 ## 4. 新服务器首次安装 Nginx diff --git a/nginx/yuheng.yuxindazhineng.com.conf b/nginx/yuheng.yuxindazhineng.com.conf index f872696..2cfb00f 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 + # API(宿主机端口 9537,与 9527 冲突时改用 9537) location /api/ { - proxy_pass http://127.0.0.1:9527/; + proxy_pass http://127.0.0.1:9537/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;