Skip to content

Commit

Permalink
contrihub: settings: Do not set SSL on debug
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Verma <[email protected]>
  • Loading branch information
shank03 committed Oct 4, 2023
1 parent ec63e06 commit b347d0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contrihub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@
},
]

SECURE_SSL_REDIRECT = True
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
if not DEBUG:
SECURE_SSL_REDIRECT = True
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")

# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/
Expand Down

0 comments on commit b347d0b

Please sign in to comment.