Skip to content

Commit

Permalink
fix: banner image base urls
Browse files Browse the repository at this point in the history
close #46
  • Loading branch information
Muhammad Faraz Maqsood authored and regisb committed Dec 9, 2023
1 parent 5f964b0 commit e30a789
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [BugFix] Fix base url for discovery media files, including program banner images. (by @Faraz32123)
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
# Disable API caching, which makes it a pain to troubleshoot issues
USE_API_CACHING = False

DISCOVERY_BASE_URL = "http://{{ DISCOVERY_HOST }}:8381"
MEDIA_URL = DISCOVERY_BASE_URL + "/media/"

{{ patch("discovery-development-settings") }}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@

SOCIAL_AUTH_REDIRECT_IS_HTTPS = {% if ENABLE_HTTPS %}True{% else %}False{% endif %}

DISCOVERY_BASE_URL = "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ DISCOVERY_HOST }}"
MEDIA_URL = DISCOVERY_BASE_URL + "/media/"

{{ patch("discovery-production-settings") }}

0 comments on commit e30a789

Please sign in to comment.