From 25a192dc71f83f8b3213549c3e32d13949b587be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Justen=20=28=40turicas=29?= Date: Sun, 8 Nov 2020 17:37:48 -0300 Subject: [PATCH] =?UTF-8?q?For=C3=A7a=20HTTPS=20na=20pagina=C3=A7=C3=A3o?= =?UTF-8?q?=20da=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pair programming com @flavioamieiro @berinhard --- brasilio/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brasilio/settings.py b/brasilio/settings.py index 36fc5732..ae7cf6d5 100644 --- a/brasilio/settings.py +++ b/brasilio/settings.py @@ -92,7 +92,7 @@ } ] WSGI_APPLICATION = "brasilio.wsgi.application" - +SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") # Database # https://docs.djangoproject.com/en/2.0/ref/settings/#databases @@ -304,6 +304,6 @@ def get_neo4j_config_dict(neo4j_uri): REGISTRATION_OPEN = env("REGISTRATION_OPEN", cast=bool, default=True) -# Brasil.io presentation config +# Brasil.IO presentation config NUM_RECENT_ACTIVITES_HOMEPAGE = env("NUM_RECENT_ACTIVITES_HOMEPAGE", cast=int, default=5) DAYS_RANGE_RECENT_ACTIVITES_HOMEPAGE = env("DAYS_RANGE_RECENT_ACTIVITES_HOMEPAGE", cast=int, default=30)