From c1d24eb7a2307f401d9a717035be335662ef6b30 Mon Sep 17 00:00:00 2001 From: timofejmalinin Date: Sun, 6 Nov 2022 15:46:47 +0400 Subject: [PATCH] release --- service/urls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/urls.py b/service/urls.py index 1a5f68a..5757bab 100644 --- a/service/urls.py +++ b/service/urls.py @@ -27,3 +27,5 @@ urlpatterns = [ re_path(r'^swagger/$', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), # re_path(r'^redoc/$', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'), ] +USE_X_FORWARDED_HOST = True +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') \ No newline at end of file