Documentation Center

Setting up a configuration repository for the Discovery Service

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

  1. Navigate to the configuration location of your Discovery Service installation.
  2. 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.
  3. 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:
    AttributeValue
    ServiceUriThe URL of the Discovery Service; that is, the base URL of the Discovery Service followed by /discovery.svc
    ClientIdThe name of the user account that can access the Discovery Service (preconfigured)
    ClientSecretThe password (secret) needed to access the Discovery Service (preconfigured)
    TokenServiceThe 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.

  4. Within the section, find the Role element with a Name attribute set to the value WebCapability and remove its subelements called <Property>.
  5. Save and close cd_storage_conf.xml.
  6. Open a command prompt.
  7. Enter the following command:
    java -jar discovery-registration.jar update
    The tool registers the configured Capabilities.
  8. Restart the Discovery Service:
    1. 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.
    2. 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.