Skip to content

Commit

Permalink
Add {{ patch(...) }} statements to the discovery setting files
Browse files Browse the repository at this point in the history
This should allow anyone to create plugins that patch those settings.
  • Loading branch information
regisb committed Oct 13, 2020
1 parent 5d05467 commit 2da983c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Expand Up @@ -89,3 +89,6 @@
EDX_DRF_EXTENSIONS = {
'OAUTH2_USER_INFO_URL': '{% if ACTIVATE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/oauth2/user_info',
}

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

Expand Up @@ -11,4 +11,6 @@
SOCIAL_AUTH_EDX_OAUTH2_ISSUER = "http://{{ LMS_HOST }}:8000"
SOCIAL_AUTH_EDX_OAUTH2_URL_ROOT = SOCIAL_AUTH_EDX_OAUTH2_ISSUER
SOCIAL_AUTH_EDX_OAUTH2_PUBLIC_URL_ROOT = SOCIAL_AUTH_EDX_OAUTH2_ISSUER
SOCIAL_AUTH_EDX_OAUTH2_LOGOUT_URL = SOCIAL_AUTH_EDX_OAUTH2_ISSUER + "/logout"
SOCIAL_AUTH_EDX_OAUTH2_LOGOUT_URL = SOCIAL_AUTH_EDX_OAUTH2_ISSUER + "/logout"

{{ patch("discovery-development-settings") }}
Expand Up @@ -17,3 +17,5 @@
SOCIAL_AUTH_EDX_OAUTH2_LOGOUT_URL = SOCIAL_AUTH_EDX_OAUTH2_ISSUER + "/logout"

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

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

0 comments on commit 2da983c

Please sign in to comment.