fix: healthz 路径改成 /api/v1/healthz(归到 API 前缀下)
This commit is contained in:
10
Caddyfile
10
Caddyfile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user