Paramètres de prod
This commit is contained in:
parent
58426c0c4a
commit
80ff6c130c
2 changed files with 15 additions and 0 deletions
|
@ -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
3
requirements-prod.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
-r requirements.txt
|
||||
psycopg2
|
||||
uwsgi
|
Loading…
Add table
Reference in a new issue