Permalink
Browse files

1 year hsts for real

  • Loading branch information...
benadida committed Oct 27, 2017
1 parent 04ad8df commit cd450611b3a514208549f4c880f40332eaba4d5b
Showing with 1 addition and 1 deletion.
  1. +1 −1 settings.py
View
@@ -102,7 +102,7 @@ def get_from_env(var, default):
# 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

0 comments on commit cd45061

Please sign in to comment.