Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
8362d927
Commit
8362d927
authored
Apr 13, 2016
by
Jim Abramson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get studio domain into programs' cors whitelist (#2941)
parent
a9d585da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
playbooks/roles/programs/defaults/main.yml
+3
-1
util/jenkins/ansible-provision.sh
+2
-0
No files found.
playbooks/roles/programs/defaults/main.yml
View file @
8362d927
...
...
@@ -53,7 +53,9 @@ PROGRAMS_PLATFORM_NAME: 'Your Platform Name Here'
# CORS
# See: https://github.com/ottoyiu/django-cors-headers/.
PROGRAMS_CORS_ORIGIN_WHITELIST
:
[]
# the whitelist should always contain the public hostname for Studio in the given environment.
PROGRAMS_CORS_ORIGIN_WHITELIST
:
-
'
127.0.0.1:8001'
PROGRAMS_DATA_DIR
:
'
{{
COMMON_DATA_DIR
}}/{{
programs_service_name
}}'
PROGRAMS_MEDIA_ROOT
:
'
{{
PROGRAMS_DATA_DIR
}}/media'
...
...
util/jenkins/ansible-provision.sh
View file @
8362d927
...
...
@@ -281,6 +281,8 @@ ECOMMERCE_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
PROGRAMS_LMS_URL_ROOT: "https://
${
deploy_host
}
"
PROGRAMS_URL_ROOT: "https://programs-
${
deploy_host
}
"
PROGRAMS_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
PROGRAMS_CORS_ORIGIN_WHITELIST:
- studio-
${
deploy_host
}
CREDENTIALS_LMS_URL_ROOT: "https://
${
deploy_host
}
"
CREDENTIALS_DOMAIN: "credentials-
${
deploy_host
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment