From 9ad9bdd9363dedf50ab3fbe70375bd817f92512b Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 15 Dec 2022 15:55:33 -0700 Subject: Implement post rate limits, move to signed cookies Also improve the test harness a little Fixes #112 --- takahe/settings.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'takahe') 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" -- cgit v1.2.3