WSO2 API管理器不在AWS EC2中工作

WSO2 API管理器不在AWS EC2中工作,wso2,wso2is,wso2-am,wso2carbon,Wso2,Wso2is,Wso2 Am,Wso2carbon,我已经在AWS EC2中配置了API管理器和预配置的Identity server的组合。 问题是API管理器在内部引用私有IP,它使用私有IP调用API,而私有IP不能从internet访问。 假设我有/users/addapi,当我使用swagger控制台时,它试图调用privateIp/users/add,但它不起作用。。。 如何解决这个问题? 我试着用publicip/users/add点击;但这两者都没有产生任何结果 谢谢您可以在carbon.xml中为Hostname和MgtHost

我已经在AWS EC2中配置了API管理器和预配置的Identity server的组合。 问题是API管理器在内部引用私有IP,它使用私有IP调用API,而私有IP不能从internet访问。 假设我有/users/addapi,当我使用swagger控制台时,它试图调用privateIp/users/add,但它不起作用。。。 如何解决这个问题? 我试着用publicip/users/add点击;但这两者都没有产生任何结果


谢谢

您可以在
carbon.xml
中为
Hostname
MgtHostName
设置公共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/主机名。

我做到了。它在我的公共ip中启动,但在尝试连接到端点时,我收到了错误,即DataEndpointConnectionWorker错误。无法借用客户的帐户ssl://54.177.182.240:9712 错误-尝试连接到终结点时发生DataEndpointConnectionWorker错误。无法借用客户的帐户ssl://publicip:9712 org.wso2.carbon.databridge.agent.exception.DataEndpointAuthenticationException:无法借用客户端以进行ssl://publicip:9712 位于org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:100)