Using Consul for Configuration Management Services

Follow these steps to use configurations from the Consul:

  1. Set the environment variable CONSUL_SERVER_URL. For more information, see Environment Variables.
  2. In your Consul service, define the keys using the format <BWCE_APP_NAME>/<PROFILE NAME>/<KEY Name>.

    For example, AccountService/Dev/BACKEND_URL

    AccountService/Prod/BACKEND_URL

    Note: The X_CONSUL_TOKEN environment variable should be used to when authentication is enabled on the Consul server.