Commit ce5b7780 by chrisndodge

Merge pull request #77 from edx/cdodge/allow-for-https-callbacks

use standard edx-platform configuration to specify if we can accept H…
parents 2c0bcc34 dd63846c
......@@ -355,7 +355,9 @@ def create_exam_attempt(exam_id, user_id, taking_as_proctored=False):
external_id = None
if taking_as_proctored:
callback_url = 'http://{hostname}{path}'.format(
scheme = 'https' if getattr(settings, 'HTTPS', 'on') == 'on' else 'http'
callback_url = '{scheme}://{hostname}{path}'.format(
scheme=scheme,
hostname=settings.SITE_NAME,
path=reverse(
'edx_proctoring.anonymous.proctoring_launch_callback.start_exam',
......
......@@ -18,6 +18,7 @@ TIME_ZONE = {}
SECRET_KEY='SHHHHHH'
PLATFORM_NAME='Open edX'
FEATURES = {}
HTTPS = 'off'
DATABASES = {
'default': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment