Skip to content
Snippets Groups Projects
Commit fb50889a authored by Dorian Lesbre's avatar Dorian Lesbre
Browse files

HTTPS settings for production

parent fa13b3a0
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,16 @@ if DEBUG:
else:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
SECURE_SSL_REDIRECT = True
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_SECONDS = 60
SECURE_HSTS_PRELOAD = True
SECURE_REFERRER_POLICY = "same-origin"
# Application definition
INSTALLED_APPS = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment