Skip to content

Commit

Permalink
100 Fix for X-FORWARDED headers not being passed (#101)
Browse files Browse the repository at this point in the history
* Fix #100

* link to reason
  • Loading branch information
peter-tanner authored Sep 2, 2022
1 parent 5f93adf commit d8c7f9b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,11 @@ def traces_sampler(sampling_context):

# This string is prefixed to the beginning of every email (subject).
EMAIL_SUBJECT_PREFIX = f"[IndEAA {APP_ENV}] "

###################
# Use HTTPS headers
###################

# https://stackoverflow.com/questions/62047354/build-absolute-uri-with-https-behind-reverse-proxy
USE_X_FORWARDED_HOST = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

0 comments on commit d8c7f9b

Please sign in to comment.