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