Skip to content
Snippets Groups Projects
Commit cd450611 authored by Ben Adida's avatar Ben Adida
Browse files

1 year hsts for real

parent 04ad8dff
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,7 @@ SESSION_COOKIE_HTTPONLY = True ...@@ -102,7 +102,7 @@ SESSION_COOKIE_HTTPONLY = True
# let's go with one year because that's the way to do it now # let's go with one year because that's the way to do it now
if (get_from_env('HSTS', '0') == '1'): 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. # not doing subdomains for now cause that is not likely to be necessary and can screw things up.
SECURE_HSTS_INCLUDE_SUBDOMAINS = True SECURE_HSTS_INCLUDE_SUBDOMAINS = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment