summaryrefslogtreecommitdiffstats
path: root/takahe
diff options
context:
space:
mode:
authorMichael Manfre2022-12-04 11:32:25 -0500
committerGitHub2022-12-04 09:32:25 -0700
commit61c1058d67ae5621687a95fbc1f6dcc71fbc42a7 (patch)
treee7a8f23198fcca7edaa21c34197d580f2bcc7e67 /takahe
parent0efa4456051e97040c750d5927304ad4db49bf24 (diff)
downloadtakahe-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.py4
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