To configure the Discovery Service configuration repository, add a section to its Storage Layer configuration file, cd_storage_conf.xml, in which Server Roles can specify the Capabilities they expose and then can use the Discovery Service registration tool to register those Capabilities in the Content Data Store .
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.
- Ensure that directly above the
License section, the file contains a ConfigRepository section. The root element of this section, ConfigRepository, must have the following attributes set:
| Attribute | Value |
|---|
ServiceUri | The URL of the Discovery Service; that is, the base URL of the Discovery Service followed by /discovery.svc |
ClientId | The name of the user account that can access the Discovery Service (preconfigured) |
ClientSecret | The password (secret) needed to access the Discovery Service (preconfigured) |
TokenService | The URL of the Token Service; that is, the base URL of the Discovery Service followed by /token.svc |
Refer to the reference documentation for the Storage Layer configuration to learn which other attributes you can configure.
- Within the section, find the
Role element with a Name attribute set to the value WebCapability and remove its subelements called <Property>.
- 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.
- Restart the Discovery Service:
- If the Discovery Service runs as a Windows service from the Start menu, enter services.msc to open your Services screen, find the item called SDL Web Discovery Service, right-click it and select Restart from the context menu.
- If the Discovery Service runs as a Java process, find the process (listed as Java (TM) Platform SE binary in Windows Task Manager) and restart it.