Skip to content

Commit

Permalink
use https in prod servers 🧷 (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksund authored Aug 3, 2023
1 parent 11d8597 commit e17ece9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/simmate/configuration/django/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,12 @@

# -----------------------------------------------------------------------------

# Many auth endpoints require a https instead of http response:
# https://stackoverflow.com/questions/67726070/
# We only use this in production
if not DEBUG:
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"

if REQUIRE_LOGIN:
MIDDLEWARE.append("simmate.website.require_login.RequireLoginMiddleware")

Expand Down

0 comments on commit e17ece9

Please sign in to comment.