From 2d0757024734462c93c2bf168278a0fac189148f Mon Sep 17 00:00:00 2001 From: Amir Date: Mon, 30 Jun 2025 12:43:10 +0200 Subject: [PATCH] prepare for prod --- backend/settings.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/settings.py b/backend/settings.py index 412c374..883ed55 100644 --- a/backend/settings.py +++ b/backend/settings.py @@ -37,7 +37,8 @@ DEBUG = config('DEBUG', default=False, cast=bool) ALLOWED_HOSTS = config('ALLOWED_HOSTS', default=[], cast=Csv()) -SITE_DOMAIN = "http://risklet.kompanijabroj4.com" +SITE_DOMAIN = "https://risklet.com" +#SITE_DOMAIN = "http://risklet.kompanijabroj4.com" #SITE_DOMAIN = "http://127.0.0.1:8000" # Application definition @@ -168,3 +169,9 @@ CELERY_ACCEPT_CONTENT = ['json'] CELERY_TASK_SERIALIZER = 'json' CELERY_TIMEZONE = 'UTC' +SECURE_SSL_REDIRECT = True +SESSION_COOKIE_SECURE = True +CSRF_COOKIE_SECURE = True +SECURE_HSTS_SECONDS = 31536000 +SECURE_HSTS_INCLUDE_SUBDOMAINS = True +SECURE_HSTS_PRELOAD = True \ No newline at end of file