Skip to content

Commit

Permalink
fix: adding production variable for https (#896)
Browse files Browse the repository at this point in the history
Co-authored-by: Ubuntu <[email protected]>
  • Loading branch information
kiram15 and Ubuntu authored Aug 1, 2024
1 parent 0cf7bf3 commit 988a882
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions enterprise_catalog/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
DEBUG = False
TEMPLATE_DEBUG = DEBUG

# IMPORTANT: With this enabled, the server must always be behind a proxy that
# strips the header HTTP_X_FORWARDED_PROTO from client requests. Otherwise,
# a user can fool our server into thinking it was an https connection.
# See
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-proxy-ssl-header
# for other warnings.
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

ALLOWED_HOSTS = ['*']

LOGGING = get_logger_config()
Expand Down

0 comments on commit 988a882

Please sign in to comment.