...
Open the
<APIM_HOME>/repository/conf/carbon.xml
file and set theHostName
andMgtHostName
property the following properties as shown below.Localtabgroup Localtab active true id Format-hostname title Format Code Block language xml <HostName>{hostname}</HostName> <MgtHostName>{management-hostname}</MgtHostName>
{hostname}
- Hostname or IP address of the machine hosting this server. This becomes part of the endpoint reference of the services deployed on this server instance.{management-hostname}
- Hostname that is used for the WSO2 API-M Management console.
Localtab id example-hostname title Example Code Block language xml <HostName>am.dev.wso2.com</HostName> <MgtHostName>am.dev.wso2.com</MgtHostName>
Open the
<APIM_HOME>/repository/conf/api-manager.xml
file and set theHostName
andMgtHostName
property as shown below.Configure the Store URL, which is used to access the Store web app from the Publisher application.
Localtabgroup Localtab id Format-storeURL title Format Code Block language xml <APIStore> <!--GroupingExtractor>org.wso2.carbon.apimgt.impl.DefaultGroupIDExtractorImpl</GroupingExtractor--> ... <URL>https://[mgt-transport-https-hostname]:[mgt-transport-https-port]/store</URL> ... </APIStore>
[mgt-transport-https-port]
- This port is optional, because if you are fronting the Store nodes with a load balancer, you need to enter the load balancer URL as the Store URL as opposed to entering the hostname and port separately.
Localtab id example-storeURL title Example Code Block language xml <APIStore> <!--GroupingExtractor>org.wso2.carbon.apimgt.impl.DefaultGroupIDExtractorImpl</GroupingExtractor--> ... <URL>https://store.wso2.com</URL> ... </APIStore>
Configure the Publisher URL, which is the URL that is used to access the tenant Store and public Store.
Localtabgroup Localtab id Format-publisherURL title Format Code Block language xml <APIPublisher> ... <URL>https://[mgt-transport-https-hostname]:[mgt-transport-https-port]/publisher</URL> ... </APIPublisher>
Localtab id example-publisherURL title Example Code Block language xml <APIPublisher> ... <URL>https://publisher.wso2.com</URL> ... </APIPublisher>
Configure the environment configurations by defining the endpoint URL for both the REST APIs and Web Socket (WS) APIs that are hosted in the API Gateway.
Localtabgroup Localtab id Format-APIURL title Format Code Block language xml <APIGateway> <Environments> <Environment type="[environment-type]" api-console="true"> <!-- Endpoint URLs for the APIs hosted in this API gateway.--> <GatewayEndpoint>http://[http-gateway-hostname]:[http-gateway-nio-port],https://[https-gateway-hostname]:[https-gateway-nio-port]</GatewayEndpoint> <!-- Endpoint of the Websocket APIs hosted in this API Gateway --> <GatewayWSEndpoint>ws://[gateway-hostname]:[gateway-ws-port]</GatewayWSEndpoint> </Environment> </Environments> </APIGateway>
Localtab id example-apiURL title Example Code Block language xml <APIGateway> <Environments> <Environment type="[environment-type]" api-console="true"> <!-- Endpoint URLs for the APIs hosted in this API gateway.--> <GatewayEndpoint>http://gateway.wso2.com,https://gateway.wso2.com</GatewayEndpoint> <!-- Endpoint of the Websocket APIs hosted in this API Gateway --> <GatewayWSEndpoint>ws://gateway.wso2.com</GatewayWSEndpoint> </Environment> </Environments> </APIGateway>
Generate a key store, export the public certificate from the keystore, and import that certificate to the
client-truststore.jks
file.
For more information, see Creating New Keystores in the WSO2 Administration guide.
...