security: 隐藏 MongoDB 连接串与库名,health 不再返回 uri/db 并对错误脱敏

This commit is contained in:
ice-a
2026-10-16 19:08:06 +08:00
parent e1572e1327
commit 090a7254e0
7 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ export interface ClientsResponse {
export interface HealthResponse {
ok: boolean
time: string
mongo: { ok: boolean; uri: string; db: string; error: string | null }
mongo: { ok: boolean; error: string | null }
webTorrent: boolean
providers: { id: string; label: string; homepage: string }[]
enabledProviders: string[]