Enable HSTS

This commit is contained in:
Alexandre Iooss 2022-01-30 19:55:46 +01:00
parent 13f5111d7a
commit df7f46425e

View file

@ -45,6 +45,9 @@ 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
SECURE_HSTS_SECONDS = 86400
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [