From 61c1058d67ae5621687a95fbc1f6dcc71fbc42a7 Mon Sep 17 00:00:00 2001 From: Michael Manfre Date: Sun, 4 Dec 2022 11:32:25 -0500 Subject: Add TAKAHE_DEFAULT_TIMEOUT with default of 5.0 (#99) --- takahe/settings.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'takahe') diff --git a/takahe/settings.py b/takahe/settings.py index 926aac5..856c22c 100644 --- a/takahe/settings.py +++ b/takahe/settings.py @@ -90,6 +90,10 @@ class Settings(BaseSettings): MEDIA_ROOT: str = str(BASE_DIR / "media") MEDIA_BACKEND: Optional[MediaBackendUrl] = None + #: Request timeouts to use when talking to other servers Either + #: float or tuple of floats for (connect, read, write, pool) + REMOTE_TIMEOUT: float | tuple[float, float, float, float] = 5.0 + #: If search features like full text search should be enabled. #: (placeholder setting, no effect) SEARCH: bool = True -- cgit v1.2.3