mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
fix: Nginx 白名单路由补充 v1beta 和 upload 路径前缀
This commit is contained in:
@@ -76,7 +76,7 @@ RUN printf '%s\n' \
|
|||||||
' }' \
|
' }' \
|
||||||
'' \
|
'' \
|
||||||
' # 后端 API 路由(白名单)→ 代理到后端' \
|
' # 后端 API 路由(白名单)→ 代理到后端' \
|
||||||
' location ~ ^/(api|v1|health)(/|$) {' \
|
' location ~ ^/(api|v1|v1beta|upload|health)(/|$) {' \
|
||||||
' proxy_pass http://127.0.0.1:PORT_PLACEHOLDER;' \
|
' proxy_pass http://127.0.0.1:PORT_PLACEHOLDER;' \
|
||||||
' proxy_http_version 1.1;' \
|
' proxy_http_version 1.1;' \
|
||||||
' proxy_set_header Host $host;' \
|
' proxy_set_header Host $host;' \
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ RUN printf '%s\n' \
|
|||||||
' }' \
|
' }' \
|
||||||
'' \
|
'' \
|
||||||
' # 后端 API 路由(白名单)→ 代理到后端' \
|
' # 后端 API 路由(白名单)→ 代理到后端' \
|
||||||
' location ~ ^/(api|v1|health)(/|$) {' \
|
' location ~ ^/(api|v1|v1beta|upload|health)(/|$) {' \
|
||||||
' proxy_pass http://127.0.0.1:PORT_PLACEHOLDER;' \
|
' proxy_pass http://127.0.0.1:PORT_PLACEHOLDER;' \
|
||||||
' proxy_http_version 1.1;' \
|
' proxy_http_version 1.1;' \
|
||||||
' proxy_set_header Host $host;' \
|
' proxy_set_header Host $host;' \
|
||||||
|
|||||||
Reference in New Issue
Block a user