我已经在AWS EC2中配置了应用程序接口管理器和预先配置的身份服务器的组合。问题是API Manager在内部引用了内网IP,并使用内网IP调用API,而内网IP无法从internet访问。假设我有/users/add API,当我使用swagger控制台时,它试图调用privateIp/users/add,但这不起作用……如何解决这个问题?我试着使用publicip/users/add来点击;但是都没有给出任何结果。
谢谢
发布于 2017-01-18 19:20:11
您可以为HostName和MgtHostName在carbon.xml中设置您的公网IP或主机名。
<!--
Host name or IP address of the machine hosting this server
e.g. www.wso2.org, 192.168.1.10
This is will become part of the End Point Reference of the
services deployed on this server instance.
-->
<!--HostName>www.wso2.org</HostName-->
<!--
Host name to be used for the Carbon management console
-->
<!--MgtHostName>mgt.wso2.org</MgtHostName-->此外,您还必须将所有配置文件中的${carbon.local.ip}替换为所需的IP/主机名。
https://stackoverflow.com/questions/41717630
复制相似问题