Published Content Stream API Appsettings
Azure Configuration Section
The following configuration section is defined in the appsettings.json file of the Published Content Stream Service.
This configuration must be aligned with the Content API configuration, ensuring that both services use consistent Azure resources and endpoints.
"Azure": {
"ConnectionString": "{Your Azure Connection String}",
"CDN": "{Your Azure CDN URL}",
"CacheInvalidateIntervalSeconds": 60
}
Docker-compose form of environment variables.
environment:
Azure__ConnectionString:"{Your Azure Connection String}"
Azure__CDN:"{Your Azure CDN URL}"
Azure__CacheInvalidateIntervalSeconds:"60"
Properties
- ConnectionString: The connection string used to access Azure Storage or other Azure resources.
Notes
- This value must be identical to the ConnectionString configured in the Content API to ensure compatibility when storing and retrieving published content.
- CDN: The endpoint URL of the Azure CDN (Content Delivery Network) that serves the published content.
Notes
- This should match the CDN configuration in the Content API so that all content is delivered consistently across services.
- CacheInvalidateIntervalSeconds: The time interval (in seconds) that determines how frequently the CDN cache is considered stale and should be invalidated or refreshed.