Skip to content

Commit

Permalink
set https off if passing http base scheme in env tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlandia committed Oct 2, 2017
1 parent 2bb20b9 commit 6294d66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cms/envs/aws_appsembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,5 @@
# set media values for SCORM upload
MEDIA_ROOT = '/edx/var/edxapp/media'
MEDIA_URL = '/media/'

HTTPS = ENV_TOKENS.get('BASE_SCHEME', 'https').lower() == 'http' and 'off' or 'on'
2 changes: 2 additions & 0 deletions lms/envs/aws_appsembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,5 @@
CORS_REPLACE_HTTPS_REFERER = True

CUSTOM_SSO_FIELDS_SYNC = ENV_TOKENS.get('CUSTOM_SSO_FIELDS_SYNC', {})

HTTPS = ENV_TOKENS.get('BASE_SCHEME', 'https').lower() == 'http' and 'off' or 'on'

0 comments on commit 6294d66

Please sign in to comment.