diff options
author | Michael Manfre | 2022-12-04 11:32:25 -0500 |
---|---|---|
committer | GitHub | 2022-12-04 09:32:25 -0700 |
commit | 61c1058d67ae5621687a95fbc1f6dcc71fbc42a7 (patch) | |
tree | e7a8f23198fcca7edaa21c34197d580f2bcc7e67 /takahe | |
parent | 0efa4456051e97040c750d5927304ad4db49bf24 (diff) | |
download | takahe-61c1058d67ae5621687a95fbc1f6dcc71fbc42a7.tar.gz takahe-61c1058d67ae5621687a95fbc1f6dcc71fbc42a7.tar.bz2 takahe-61c1058d67ae5621687a95fbc1f6dcc71fbc42a7.zip |
Add TAKAHE_DEFAULT_TIMEOUT with default of 5.0 (#99)
Diffstat (limited to 'takahe')
-rw-r--r-- | takahe/settings.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |