WSO2 API Manager - Displaying Private IP in the store

旧街凉风 提交于 2019-12-05 20:50:54

You can set this from api-manager.xml. Under APIGateway section there's the GatewayEndpoint element in which you can specify the URLs which should be shown in the store.

<APIGateway>

<Environments>
            <Environment type="hybrid">
                    <Name>Production and Sandbox</Name>
                    <ServerURL>https://localhost:9445/services/</ServerURL>
                    <Username>admin</Username>
                    <Password>admin</Password>
    **<GatewayEndpoint>http://localhost:8282,https://localhost:8245</GatewayEndpoint>**
            </Environment>
    </Environments>

    <EnableGatewayKeyCache>true</EnableGatewayKeyCache>

<ClientDomainHeader>referer</ClientDomainHeader>

</APIGateway>

Edit api-manager.xml file located in WSO2-HOME/repository/conf, and set the GatewayEndpoint to http://mydomainname.com

<Environment type="hybrid">
                    <Name>Production and Sandbox</Name>

                    <ServerURL>https://${carbon.local.ip}:${mgt.transport.https.port}/services/</ServerURL>

                    <Username>admin</Username>

                    <Password>admin</Password>

                    <GatewayEndpoint>http://${carbon.local.ip}:${http.nio.port},https://${carbon.local.ip}:${https.nio.port}</GatewayEndpoint>
            </Environment>

Below Configuration worked for me.

You can also change the Hostname Value in carbon.xml with your Ws02 API Manager DNS entry or System Public IP address.

"<HostName>{hostname}</HostName>"

https://docs.wso2.com/display/AM210/Changing+the+Hostname

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!