If you already used the auto-register switch to register this Server Role as a Capability when you installed it as a standalone microservice, you can skip this task. If you did not, you can make this microservice discoverable through the Discovery Endpoint by hand by adding it as a Capability to the Discovery Service's Storage Layer configuration file and update the Capability registry by rerunning the Discovery Service registration tool.
Procedure
- Navigate to the configuration location of your Discovery Service installation.
- From this location, copy cd_storage_conf.xml to the location in which you saved the Discovery Service registration tool (the file discovery-registration.jar), and open it for editing.
- Find the
ConfigRepository section and its Roles subsection.
- Find the
Role element with its Name attribute set to UGCModerationServiceCapability. This element has a subelement called Targets
- Do one of the following:
- If this is the first Moderation service you install, set the
Url attribute of the Target subelement to http://HOST:PORT/moderation.svc, where http://HOST:PORT identifies the base URL of this Moderation Web service microservice. By default, this microservice runs on port 8086.
- If this is not the first Moderation service you install, add a new
Target subelement to Targets and set its Url attribute to http://HOST:PORT/moderation.svc, where http://HOST:PORT identifies the base URL of this new Moderation Web service microservice instance.
- In the
Target element you configured, set the Name attribute to a meaningful value. This value must be identical to the one in the corresponding target in the Community service.
- Save and close cd_storage_conf.xml.
- Open a command prompt.
- Enter the following command:
java -jar discovery-registration.jar update
The tool registers the configured Capabilities.