Include subdomains and preload in HSTS
This commit is contained in:
parent
df7f46425e
commit
a719203ee0
1 changed files with 4 additions and 2 deletions
|
|
@ -45,8 +45,10 @@ ADMINS = [
|
||||||
SESSION_COOKIE_SECURE = not DEBUG
|
SESSION_COOKIE_SECURE = not DEBUG
|
||||||
CSRF_COOKIE_SECURE = not DEBUG
|
CSRF_COOKIE_SECURE = not DEBUG
|
||||||
|
|
||||||
# Remember HTTPS for 24h
|
# Remember HTTPS for 1 year
|
||||||
SECURE_HSTS_SECONDS = 86400
|
SECURE_HSTS_SECONDS = 31536000
|
||||||
|
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
|
||||||
|
SECURE_HSTS_PRELOAD = True
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue