Copy the microservice resources, or for a deprecated Web application-based microservice, copy the contents of a WAR file to a Web application location.
Procedure
- Access your installation media and navigate to the folder Content Delivery\roles\.
- Navigate to the discovery\ subfolder.
- Do one of the following:
-
Copy resources for a standalone microservice installation
- Copy the standalone\ folder, with all its files and subfolders, to your target machine, and rename it to a unique name of your choosing.
-
Copy resources for a microservice installation as a Java/JSP Web application (deprecated and discouraged)
-
Contact SDL to obtain a WAR file containing the microservice. Unpack the .war file to a location on your target machine from which your Java/JSP Web application server can deploy it.
- If all of the following are true:
- You are installing the Discovery Service as a standalone microservice.
- Clients connect to the Discovery Service through HTTPS.
- You are using Amazon's Elastic Load Balancer.
then you must do the following to enable forwarding of X-Forwarded-For, X-Forwarded-Proto and X-Forwarded-Port headers:
- On your installation media, navigate to Content Delivery\resources\filter\.
- Copy the file service-container-filter-VERSION.jar, where VERSION indicates the version of the file, to your target machine.
- From the registration\ subfolder, copy the Discovery Service registration tool, discovery-registration.jar, to a location of your choice. A good location would be the the config\ subdirectory of your Discovery Service directory.