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
a315a4e4
Commit
a315a4e4
authored
May 22, 2016
by
Matt Drayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mattdrayer/ecommerce-worker-multisite: Add site-specific overrides
parent
7258eebd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
+17
-1
playbooks/roles/ecomworker/defaults/main.yml
+17
-1
No files found.
playbooks/roles/ecomworker/defaults/main.yml
View file @
a315a4e4
...
...
@@ -52,9 +52,10 @@ ECOMMERCE_WORKER_WORKER_ACCESS_TOKEN: 'your-secret-here'
ECOMMERCE_WORKER_MAX_FULFILLMENT_RETRIES
:
11
# END ORDER FULFILLMENT
# Ecommerce Worker settings
# Ecommerce Worker settings
ECOMMERCE_WORKER_JWT_SECRET_KEY
:
'
insecure-secret-key'
ECOMMERCE_WORKER_JWT_ISSUER
:
'
ecommerce_worker'
ECOMMERCE_WORKER_SITE_OVERRIDES
:
!!null
ECOMMERCE_WORKER_SERVICE_CONFIG
:
BROKER_URL
:
'
{{
ECOMMERCE_WORKER_BROKER_URL
}}'
...
...
@@ -63,6 +64,21 @@ ECOMMERCE_WORKER_SERVICE_CONFIG:
JWT_ISSUER
:
'
{{
ECOMMERCE_WORKER_JWT_ISSUER
}}'
MAX_FULFILLMENT_RETRIES
:
'
{{
ECOMMERCE_WORKER_MAX_FULFILLMENT_RETRIES
}}'
# Site-specific configuration overrides. Implemented as a dict of dicts with 'site_code' for keys.
# Ecommerce worker will apply these settings instead of their corresponding default values.
# For example:
# SITE_OVERRIDES: {
# "site1": {
# "ECOMMERCE_API_ROOT": "http://ecommerce-subdomain.domain.com"
# },
# "site2": {
# "JWT_SECRET_KEY": "site2-secret-key",
# "JWT_ISSUER": "site2-worker"
# }
# }
SITE_OVERRIDES
:
'
{{
ECOMMERCE_WORKER_SITE_OVERRIDES
}}'
ecommerce_worker_environment
:
WORKER_CONFIGURATION_MODULE
:
'
ecommerce_worker.configuration.production'
ECOMMERCE_WORKER_CFG
:
'
{{
COMMON_CFG_DIR
}}/{{
ecommerce_worker_service_name
}}.yml'
...
...
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