Edit properties

Update property values to route requests to the Codar node through the load balancer node and set the mode in which Codar is running as follows:

  1. Edit the <codar_home>\jboss-as\standalone\deployments\csa.war\WEB-INF\classes\csa.properties (in Windows) or <codar_home>/jboss-as/standalone/deployments/csa.war/WEB-INF/classes/csa.properties (in Linux) file as follows:

    1. Set the following properties:

      csa.provider.hostname=<load_balancer_host_name>
      csa.provider.port=<load_balancer_codar_port>
      csa.provider.rest.protocol=https
      deploymentMode=clustered

      For example:

      csa.provider.hostname=load_balancer.xyz.com
      csa.provider.port=8443
      csa.provider.rest.protocol=https
      deploymentMode=clustered
      Note: If you set the csa.provider.hostname attribute to the IP address of the system on which the load balancer is installed, the Subject Alt Name attribute of the load balancer's certificate that has been imported into Codar's keystore must also be set to the IP address of the system on which the load balancer is installed. If the load balancer's certificate does not contain the Subject Alt Name attribute or it is not set to the IP address of the system on which the load balancer is installed, you must regenerate and re-import the load balancer's certificate with the Subject Alt Name attribute set to the IP address of the system on which the load balancer is installed.
    2. Add and set the following property:

      csa.provider.ip=[LOAD_BALANCER_IP_ADDR]
  2. Edit the <codar_home>/jboss-as/standalone/deployments/csa.war/WEB-INF/classes/swagger.properties (for Linux) or <codar_home>\jboss-as\standalone\deployments\csa.war\WEB-INF\classes\swagger.properties and set the following property:

    documentation.services.basePath=https://<load_balancer_host_name>:[load_balancer_port]/csa/rest

    For example, documentation.services.basePath=https://load_balancer.xyz.com:8443/csa/rest