fix: require Basic Auth for health checks

This commit is contained in:
ji ruo committed 2026-11-03 14:56:39 +08:00
1 parent 5203176364
commit f053931a1d
7 files changed
+76 -24

No files matched your search

+1 -1
View File
@@ -318,7 +318,7 @@ function schedulePayload(input: ScheduleInput) {
}
export const api = {
// 公开健康检查不返回应用名称或版本;版本号仅向已登录管理员提供。
// 健康检查受可选 Basic Auth 保护且不返回应用名称或版本;版本号仅向已登录管理员提供。
health: () => get<{ ok: boolean }>("/health"),
version: () => http<{ version: string }>("/version", { cache: "no-store" }),
systemMetrics: () => get<SystemMetrics>("/system/metrics"),