Paramètres de prod

This commit is contained in:
Tom Hubrecht 2021-03-23 12:45:57 +01:00
parent 58426c0c4a
commit 80ff6c130c
2 changed files with 15 additions and 0 deletions

View file

@ -56,3 +56,15 @@ DATABASES = {
"HOST": os.environ.get("DBHOST", "localhost"),
}
}
# #############################################################################
# Paramètres Https
# #############################################################################
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
SECURE_SSL_REDIRECT = True
SECURE_HSTS_SECONDS = 31536000
SECURE_HSTS_PRELOAD = True
SECURE_HSTS_INCLUDE_SUBDOMAINS = True

3
requirements-prod.txt Normal file
View file

@ -0,0 +1,3 @@
-r requirements.txt
psycopg2
uwsgi