From cd450611b3a514208549f4c880f40332eaba4d5b Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Fri, 27 Oct 2017 02:56:20 +0000 Subject: [PATCH] 1 year hsts for real --- settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.py b/settings.py index fa5127b..45a9357 100644 --- a/settings.py +++ b/settings.py @@ -102,7 +102,7 @@ SESSION_COOKIE_HTTPONLY = True # let's go with one year because that's the way to do it now if (get_from_env('HSTS', '0') == '1'): - SECURE_HSTS_SECONDS = 52 * 3600 * 24 * 7 + SECURE_HSTS_SECONDS = 31536000 # not doing subdomains for now cause that is not likely to be necessary and can screw things up. SECURE_HSTS_INCLUDE_SUBDOMAINS = True -- GitLab