Configuring Content Delivery environments for the Add-on Service

For Extensions to Content Delivery, the Add-on Service requires that you add a cdenvironment environment variable to each Content Delivery environment.

About this task

The Add-on Service supports Extension configuration that is specific to individual Content Delivery environments. For example, you can configure an extension differently in your live versus staging environments. For environment-specific configuration, the Extension needs to refer to each of the Content Delivery environments by the name defined in the a cdenvironment environment variable.

Content Delivery services use the configuration to do the following:

  • Associate the appropriate environment configuration section from the Add-on's custom configuration file
  • Report on the status of the Add-on

Note that when you develop your own Add-on, you can override the values of any environment variables through the use of a custom configuration file specific for that Add-on.

Procedure

  1. On each server in the Content Delivery environment, add a cdenvironment environment variable.
  2. Set the variable's value to that environment's purpose, For example, on every machine in your live environment, you would define the variable with a value set to "live", and then do the same with the value "staging" for your staging environment.