Commit 892f4cf1 by Clinton Blackburn Committed by Ibrahim

fixup! Fixing discovery for sandboxes

parent c317bf93
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
edx_platform_version: 'master' edx_platform_version: 'master'
# Set to false if deployed behind another proxy/load balancer. # Set to false if deployed behind another proxy/load balancer.
NGINX_SET_X_FORWARDED_HEADERS: True NGINX_SET_X_FORWARDED_HEADERS: True
DISCOVERY_URL_ROOT: 'http://localhost:{{ DISCOVERY_NGINX_PORT }}'
roles: roles:
- role: swapfile - role: swapfile
SWAPFILE_SIZE: 4GB SWAPFILE_SIZE: 4GB
......
...@@ -58,9 +58,10 @@ DISCOVERY_ELASTICSEARCH_INDEX_NAME: 'catalog' ...@@ -58,9 +58,10 @@ DISCOVERY_ELASTICSEARCH_INDEX_NAME: 'catalog'
DISCOVERY_MEMCACHE: [ 'memcache' ] DISCOVERY_MEMCACHE: [ 'memcache' ]
DISCOVERY_VERSION: "master" DISCOVERY_VERSION: 'master'
DISCOVERY_DJANGO_SETTINGS_MODULE: "course_discovery.settings.production" DISCOVERY_DJANGO_SETTINGS_MODULE: "course_discovery.settings.production"
DISCOVERY_URL_ROOT: 'http://discovery:{{ DISCOVERY_NGINX_PORT }}' DISCOVERY_HOSTNAME: 'localhost'
DISCOVERY_URL_ROOT: 'http://{{ DISCOVERY_HOSTNAME }}:{{ DISCOVERY_NGINX_PORT }}'
DISCOVERY_LOGOUT_URL: '{{ DISCOVERY_URL_ROOT }}/logout/' DISCOVERY_LOGOUT_URL: '{{ DISCOVERY_URL_ROOT }}/logout/'
DISCOVERY_SECRET_KEY: 'Your secret key here' DISCOVERY_SECRET_KEY: 'Your secret key here'
......
...@@ -49,3 +49,4 @@ dependencies: ...@@ -49,3 +49,4 @@ dependencies:
edx_django_service_extra_apps: '{{ DISCOVERY_EXTRA_APPS }}' edx_django_service_extra_apps: '{{ DISCOVERY_EXTRA_APPS }}'
edx_django_service_session_expire_at_browser_close: '{{ DISCOVERY_SESSION_EXPIRE_AT_BROWSER_CLOSE }}' edx_django_service_session_expire_at_browser_close: '{{ DISCOVERY_SESSION_EXPIRE_AT_BROWSER_CLOSE }}'
edx_django_service_automated_users: '{{ DISCOVERY_AUTOMATED_USERS }}' edx_django_service_automated_users: '{{ DISCOVERY_AUTOMATED_USERS }}'
edx_django_service_hostname: '{{ DISCOVERY_HOSTNAME }}'
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
COMMON_SECURITY_UPDATES: true COMMON_SECURITY_UPDATES: true
SECURITY_UPGRADE_ON_ANSIBLE: true SECURITY_UPGRADE_ON_ANSIBLE: true
MONGO_AUTH: false MONGO_AUTH: false
DISCOVERY_URL_ROOT: 'http://localhost:{{ DISCOVERY_NGINX_PORT }}'
vars_files: vars_files:
- roles/edxapp/vars/devstack.yml - roles/edxapp/vars/devstack.yml
roles: roles:
......
...@@ -299,6 +299,7 @@ CREDENTIALS_URL_ROOT: "https://{{ CREDENTIALS_DOMAIN }}" ...@@ -299,6 +299,7 @@ CREDENTIALS_URL_ROOT: "https://{{ CREDENTIALS_DOMAIN }}"
CREDENTIALS_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true CREDENTIALS_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
discovery_create_demo_data: true discovery_create_demo_data: true
DISCOVERY_HOSTNAME: "discovery-${deploy_host}"
DISCOVERY_URL_ROOT: "https://discovery-${deploy_host}" DISCOVERY_URL_ROOT: "https://discovery-${deploy_host}"
DISCOVERY_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true DISCOVERY_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
DISCOVERY_ECOMMERCE_URL_ROOT: "https://ecommerce-${deploy_host}" DISCOVERY_ECOMMERCE_URL_ROOT: "https://ecommerce-${deploy_host}"
......
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