fix: Nginx 白名单路由补充 v1beta 和 upload 路径前缀

This commit is contained in:
fawney19
2026-02-09 16:45:56 +08:00
parent f22d2efb9d
commit c5d1d2c21e
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ RUN printf '%s\n' \
' }' \
'' \
' # 后端 API 路由(白名单)→ 代理到后端' \
' location ~ ^/(api|v1|health)(/|$) {' \
' location ~ ^/(api|v1|v1beta|upload|health)(/|$) {' \
' proxy_pass http://127.0.0.1:PORT_PLACEHOLDER;' \
' proxy_http_version 1.1;' \
' proxy_set_header Host $host;' \

View File

@@ -87,7 +87,7 @@ RUN printf '%s\n' \
' }' \
'' \
' # 后端 API 路由(白名单)→ 代理到后端' \
' location ~ ^/(api|v1|health)(/|$) {' \
' location ~ ^/(api|v1|v1beta|upload|health)(/|$) {' \
' proxy_pass http://127.0.0.1:PORT_PLACEHOLDER;' \
' proxy_http_version 1.1;' \
' proxy_set_header Host $host;' \