diff --git a/backend/config/settings.py b/backend/config/settings.py index 4b2ae66..630f2c4 100644 --- a/backend/config/settings.py +++ b/backend/config/settings.py @@ -258,5 +258,16 @@ hostname, _, ips = socket.gethostbyname_ex(socket.gethostname()) INTERNAL_IPS = [ip[: ip.rfind(".")] + ".1" for ip in ips] + ["127.0.0.1", "10.0.2.2"] else: - SECURE_SSL_REDIRECT = True - CSRF_COOKIE_SECURE = True \ No newline at end of file + SECURE_SSL_REDIRECT = config("SECURE_SSL_REDIRECT", default=False, cast=bool) + SESSION_COOKIE_SECURE = config("SESSION_COOKIE_SECURE", default=True, cast=bool) + CSRF_COOKIE_SECURE = config("CSRF_COOKIE_SECURE", default=True, cast=bool) + LOGGING = { + "version": 1, + "handlers": { + "mail_admins": { + "level": "ERROR", + "class": "django.utils.log.AdminEmailHandler", + "include_html": True, + } + }, + } \ No newline at end of file