feat(vaults): add configurable network timeout for remote vaults

Default 10s on API/HTTP vault requests, overridable per-vault (`timeout:`) or globally (`vault_timeout`); previously they could hang indefinitely on an unreachable host.
This commit is contained in:
imSp4rky
2026-06-21 20:39:37 -06:00
parent 3f5b5e0fe1
commit ecf0bf41ab
5 changed files with 35 additions and 8 deletions
+1
View File
@@ -75,6 +75,7 @@ class Config:
self.audio: dict = kwargs.get("audio") or {}
self.headers: dict = kwargs.get("headers") or {}
self.key_vaults: list[dict[str, Any]] = kwargs.get("key_vaults", [])
self.vault_timeout: float = kwargs.get("vault_timeout", 10.0)
self.muxing: dict = kwargs.get("muxing") or {}
self.proxy_providers: dict = kwargs.get("proxy_providers") or {}
self.remote_services: dict = kwargs.get("remote_services") or {}