From 2cce8813e9f736e290fa713972545d835ae297e8 Mon Sep 17 00:00:00 2001 From: Alexander-D-Karpov Date: Sun, 7 Apr 2024 14:59:10 +0300 Subject: [PATCH] updated file serving --- config/settings/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/settings/base.py b/config/settings/base.py index c385457..f2f489d 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -748,6 +748,7 @@ ELASTICSEARCH_DSL = { "default": {"hosts": env("ELASTIC_SEARCH", default="http://127.0.0.1:9200/")}, } - - USE_DEBUG_TOOLBAR = False +SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") +USE_X_FORWARDED_HOST = True +USE_X_FORWARDED_PORT = True