mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
Enable HSTS in Django
This commit is contained in:
parent
fe753d3b36
commit
f27261fe4e
1 changed files with 2 additions and 2 deletions
|
@ -631,8 +631,8 @@ X_FRAME_OPTIONS = 'DENY'
|
||||||
SECURE_CONTENT_TYPE_NOSNIFF = True
|
SECURE_CONTENT_TYPE_NOSNIFF = True
|
||||||
|
|
||||||
# Optionally enable HSTS
|
# Optionally enable HSTS
|
||||||
SECURE_HSTS_SECONDS = 0
|
SECURE_HSTS_SECONDS = 63072000 # as in Strict-Transport-Security : max-age=yunohost/data/templates/nginx/yunohost_admin.conf
|
||||||
SECURE_HSTS_PRELOAD = False
|
SECURE_HSTS_PRELOAD = False # already done by YunoHost
|
||||||
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
|
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
|
||||||
|
|
||||||
# URL of login
|
# URL of login
|
||||||
|
|
Loading…
Reference in a new issue