Skip to main content

Set up agent proxy communication for Contrast service broker

If you are deploying a Java agent in VMWare Tanzu, you can choose to configure a proxy when you add the Contrast service broker tile. The Contrast service broker can use a proxy configuration set within the service plan to complete the binding with Contrast..

If you configure a proxy when you add the Contrast servce broker tile, you also need to set up agent communication with the proxy, as described in this topic. You can do this for each application or set it at an organization level for all deployed applications to consume.

Steps

  1. To set up proxy communication for each application, use this command:

    cf set-env $APP_NAME CONTRAST__API__PROXY__ENABLE "true"
    cf set-env $APP_NAME CONTRAST__API__PROXY__URL "scheme://host:port"

    Alternatively, you can use this command:

    cf set-env $APP_NAME JAVA_OPTS "-Dcontrast.api.proxy.enable=true -Dcontrast.api.proxy.url=scheme://host:port"
  2. To set up proxy communication at an organizataion level, use this command:

    cf ssevg '{"CONTRAST__API__PROXY__ENABLE": "true"}'
    cf ssevg '{"CONTRAST__API__PROXY__URL": "scheme://host:port"}'

See also

Add Contrast service broker tile

Add Contrast service broker