From 80ff6c130ce71b16f2e914474e79504a1d9a5ca6 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 23 Mar 2021 12:45:57 +0100 Subject: [PATCH] =?UTF-8?q?Param=C3=A8tres=20de=20prod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kadenios/settings/prod.py | 12 ++++++++++++ requirements-prod.txt | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 requirements-prod.txt diff --git a/kadenios/settings/prod.py b/kadenios/settings/prod.py index d463e6c..326b1ab 100644 --- a/kadenios/settings/prod.py +++ b/kadenios/settings/prod.py @@ -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 diff --git a/requirements-prod.txt b/requirements-prod.txt new file mode 100644 index 0000000..d78355a --- /dev/null +++ b/requirements-prod.txt @@ -0,0 +1,3 @@ +-r requirements.txt +psycopg2 +uwsgi