Commit 196afa42 by Matt Drayer

Merge pull request #3060 from edx/mattdrayer/ecommerce-worker-multisite

mattdrayer/ecommerce-worker-multisite: Add site-specific overrides
parents 167c2f99 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'
......
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