fix: healthz 路径改成 /api/v1/healthz(归到 API 前缀下)

This commit is contained in:
Mavis
2026-06-07 23:15:33 +08:00
parent eaa4aa6604
commit 2e75985a3c
3 changed files with 34 additions and 10 deletions

View File

@@ -12,15 +12,11 @@
# 如果有域名,改用下面的 https 配置块
http://{$DOMAIN:NEWS_DOMAIN_FALLBACK} {
# /api/* 转发到 api:8000,handle_path 会自动 strip 匹配的 /api 前缀
handle_path /api/* {
reverse_proxy api:8000
}
# /api/* 直接转发,保留路径(后端 FastAPI 路由就是 /api/v1/*)
reverse_proxy /api/* api:8000
# 其余走前端 SPA
handle {
reverse_proxy frontend:80
}
reverse_proxy /* frontend:80
encode gzip zstd