Skip to content

Commit

Permalink
try to fix reverse proxy problem by adding settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandraPoturaeva committed Apr 5, 2024
1 parent 839f2ce commit 0266887
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sports_events/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@
YANDEX_BUCKET_NAME = os.getenv('YANDEX_BUCKET_NAME')

if not DEBUG:
USE_X_FORWARDED_HOST = True

STORAGES = {
"default": {
"BACKEND": "yandex_s3_storage.MediaStorage",
Expand Down

0 comments on commit 0266887

Please sign in to comment.