- The persistent cache, if configured
- The global fallback strategy
<tag> with the latest version in the ECR Public Gallery.
Persistent cache
For cached data to survive service restarts, or to be shared across multiple instances of the Sidecar service, use Redis as the cache layer by providing theREDIS_* environment variables:
When Redis is configured, you must also run the
Persistent Cache Service
in a separate process to keep entitlements and usage data in Redis up to date.
If you don’t configure Redis, you can simply run the Sidecar by itself with in-memory caching only.
Global fallback strategy
A global fallback strategy can be set by providing the Sidecar service with theENTITLEMENTS_FALLBACK environment variable. It expects a JSON object in string format.
For example, the following global fallback configuration:
JSON.stringify and then set as the value of ENTITLEMENTS_FALLBACK when running the container:
isFallback: true.
Offline mode
During local development or testing, you might want to avoid making network requests to the Stigg API. To do this, run the Sidecar service in offline mode by settingOFFLINE=TRUE. When enabled, API key validation always succeeds, regardless of the key provided: