【发布时间】:2019-09-06 06:58:08
【问题描述】:
我正在尝试使用 Docker Compose 部署 API Manager 和 Enterprise Integrator。这是使用云服务器部署的。
当使用 localhost 作为主机时,一切都在本地工作,但是当我将它部署在使用云服务器上时,我无法使用服务器的公共 IP 访问 API Manager。企业集成器虽然有效。我已经修改了一些配置参数,如下所示,但问题仍然存在:
<APIStore>
<!--GroupingExtractor>org.wso2.carbon.apimgt.impl.DefaultGroupIDExtractorImpl</GroupingExtractor-->
<!--This property is used to indicate how we do user name comparision for token generation https://wso2.org/jira/browse/APIMANAGER-2225-->
<CompareCaseInsensitively>true</CompareCaseInsensitively>
<DisplayURL>false</DisplayURL>
<URL>https://<PUBLIC IP HERE>:${mgt.transport.https.port}/store</URL>
<!-- Server URL of the API Store. -->
<ServerURL>https://<PUBLIC IP HERE>:${mgt.transport.https.port}${carbon.context}services/</ServerURL>
我也已将上述公共 IP 列入白名单:
"whiteListedHostNames" : ["localhost","PUBLIC IP HERE"]
【问题讨论】:
-
您无法访问任何内容?店铺?出版商?日志中有错误吗?
-
什么都没有。也没有错误。
-
当你发送一个get到
/store时你得到的状态码是什么? -
curl -v https://
:9453/store * 正在尝试 ... * TCP_NODELAY 设置 * 连接失败 * 连接到 端口 9453 失败:操作超时 * 无法连接到 端口 9453:操作超时 * 关闭连接 0 curl:(7)无法连接到 端口 9453:操作超时 -
试试这个并将结果发送给我。
telnet <public_ip> 9453
标签: docker docker-compose wso2 wso2-am