Set Environment Configuration Properties

Overview

This page describes how to configure environment-specific properties for your Bloomreach Experience Manager (XM) application in Bloomreach Cloud. Use configuration files in Java properties format to define key-value pairs such as credentials, API keys, or other settings required for each environment.

Create a Configuration File

Create a plain text file using the Java properties file format. Each line should contain a key-value pair:

foo.service.url=https://example.org/foo/
foo.service.key=ABev2c6Rp5tC1YTYiklHn2hvn54XiZhu3Ce9Wte6

Manage Configuration Files in Mission Control

To upload and manage configuration files:

  1. In Mission Control, go to the Files screen.
  2. Select the Configurations tab.

Mission Control Files screen with Configurations tab and property files

  • Use the button in the bottom right corner to upload a new configuration file.
  • Use the context menu for each file to rename or delete it.

Configuration files list with Rename and Delete context menu

Note:
You cannot overwrite an existing configuration file. If you upload a file with the same name as an existing file, Bloomreach Cloud appends a suffix to the new file name (for example, blue.properties becomes blue (1).properties).

Deploy Configuration Files with a Distribution

To deploy configuration files with your application:

  1. Navigate to the target environment.
  2. Click Deploy an application or Redeploy an application.
  3. Select the distribution to deploy.
  4. Select one or more configuration files to include. Bloomreach Cloud sets the Java system property brc.appconfigfiles with a comma-separated list of the selected file names.

Deploy application screen with configuration files dropdown

You can optionally specify a new name for each configuration file during deployment. This allows you to maintain versioned files (such as blue.1.0.0.properties, blue.2.0.0.properties) but always deploy them as a consistent name (such as blue.properties).

Configuration file rename fields showing blue.properties target name

You may also select one or more configuration files to use as Java system properties. In this case, Bloomreach Cloud sets a Java system property for each key-value pair in the selected files. You can view the resulting Java system properties and their values in the CMS admin panel.

Bloomreach Cloud deploy dialog selecting Java system properties file

Retrieve the Environment Name

To retrieve the current environment name in your application code, use the Java system property brc.environmentname.

Specify Configuration File Location as a Java System Property

If you need to reference the location of a configuration file as a Java system property, use the variable ${APP_CONFIG_PATH}. For example:

spring.config.location=${APP_CONFIG_PATH}/spring.properties

Bloomreach Cloud replaces ${APP_CONFIG_PATH} with the actual path and passes spring.config.location as a Java system property.

The full path to the configuration files is also available as the Java system property brc.appconfigpath.

Javax.net.truststore Restrictions

Bloomreach Cloud does not allow javax.net.truststore as a parameter. If your configuration file contains this parameter, the upload will fail.

Configure brXM to Load HST Configuration Files

To use environment-specific configuration files for core brXM files (such as platform.properties), update your project as follows:

  1. Configure the CMS application to load the configuration file from the deployment directory. Set the hst-config-properties context parameter in the /cms project's web.xml file:

    <context-param> <param-name>hst-config-properties</param-name> <param-value>${brc.appconfigpath}/platform.properties</param-value> </context-param>
  2. For local development, set the brc.appconfigpath system property in the cargo.run profile of your main pom.xml file:

    <brc.appconfigpath>conf</brc.appconfigpath>
  3. Upload the environment-specific configuration files and deploy them as described above.
    Ensure that each file is deployed as platform.properties from the CMS application's perspective. For example, upload files named platform-production.properties, platform-acceptance.properties, and platform-test.properties, but always deploy them as platform.properties.

Override repo.bootstrap

Starting with BRC v12.6, you can override the repo.bootstrap argument in a configuration file:

repo.bootstrap=full

The default value is true. Only change this setting if you understand its impact. When deploying, select the "use as Java system properties" option for the configuration file.

To check your BRC version, navigate to #/version in Mission Control (for example: https://missioncontrol.customer.bloomreach.cloud/#/version).

Configure JVM Timezone

To set the JVM timezone, upload a configuration file with the following property:

user.timezone=Etc/UTC

Replace Etc/UTC with your desired timezone. When deploying the CMS distribution, include this file as a Java system properties file.

Share Feedback
Page: /deploy/bloomreach-cloud/reference-documentation/set-environment-configuration-properties
Section: Deploy
Category *