diff options
author | Andrew Godwin | 2022-12-15 15:55:33 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-15 15:55:33 -0700 |
commit | 9ad9bdd9363dedf50ab3fbe70375bd817f92512b (patch) | |
tree | 01cfc99d4755e6f85c7e2a09f513c9bec4eedb65 /takahe | |
parent | 612ab4bcdf127adcff58466e96e48d62b6036b15 (diff) | |
download | takahe-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.py | 2 |
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" |