summaryrefslogtreecommitdiffstats
path: root/takahe
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-15 15:55:33 -0700
committerAndrew Godwin2022-12-15 15:55:33 -0700
commit9ad9bdd9363dedf50ab3fbe70375bd817f92512b (patch)
tree01cfc99d4755e6f85c7e2a09f513c9bec4eedb65 /takahe
parent612ab4bcdf127adcff58466e96e48d62b6036b15 (diff)
downloadtakahe-9ad9bdd9363dedf50ab3fbe70375bd817f92512b.tar.gz
takahe-9ad9bdd9363dedf50ab3fbe70375bd817f92512b.tar.bz2
takahe-9ad9bdd9363dedf50ab3fbe70375bd817f92512b.zip
Implement post rate limits, move to signed cookies
Also improve the test harness a little Fixes #112
Diffstat (limited to 'takahe')
-rw-r--r--takahe/settings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/takahe/settings.py b/takahe/settings.py
index 98bc9dd..3017293 100644
--- a/takahe/settings.py
+++ b/takahe/settings.py
@@ -282,6 +282,8 @@ STATICFILES_DIRS = [BASE_DIR / "static"]
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
+SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies"
+
WHITENOISE_MAX_AGE = 3600
STATIC_ROOT = BASE_DIR / "static-collected"