1
0
Fork 0
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:
Jean-Baptiste Holcroft 2019-08-30 22:21:03 +02:00
parent fe753d3b36
commit f27261fe4e

View file

@ -631,8 +631,8 @@ X_FRAME_OPTIONS = 'DENY'
SECURE_CONTENT_TYPE_NOSNIFF = True
# Optionally enable HSTS
SECURE_HSTS_SECONDS = 0
SECURE_HSTS_PRELOAD = False
SECURE_HSTS_SECONDS = 63072000 # as in Strict-Transport-Security : max-age=yunohost/data/templates/nginx/yunohost_admin.conf
SECURE_HSTS_PRELOAD = False # already done by YunoHost
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
# URL of login