Skip to content

Commit

Permalink
Força HTTPS na paginação da API
Browse files Browse the repository at this point in the history
Pair programming com @flavioamieiro @berinhard
  • Loading branch information
turicas committed Nov 8, 2020
1 parent 2368cc7 commit 25a192d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brasilio/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 25a192d

Please sign in to comment.