fix: 优化启动脚本

This commit is contained in:
Daniel
2026-03-08 00:03:14 +08:00
parent 7db497bc94
commit 321fad8a0d
4 changed files with 64 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
# 将 /api 请求转发到本机 Node 后端(端口与 start-api.sh 一致,默认 5599
# 把下面这段加入 server { ... } 内,建议放在 root 指令之后、其他 location 之前
location /api {
proxy_pass http://127.0.0.1:5599;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}