WSO2 API 管理器,新的网关端点未唤醒



我已经使用静态IP地址将WSO2 API Manager托管到我的虚拟机中。

我可以通过输入以下地址打开我的碳、出版商和商店页面:

https://my.ip.address:9443/publisher
https://my.ip.address:9443/store
https://my.ip.address:9443/carbon

当我在发布者页面中添加我的 API 时,它会在仅供内部使用的地址172.x.x.x.x创建端点。

因此,为了能够在外部访问我的端点,我在wso2wso2am-2.1.0repositoryconfapi-manager.xml中将这些行写进了APIGateway

<APIGateway>
<Environments>
<Environment type="hybrid" api-console="true">
<Name>Production and Sandbox</Name>
<Description>This is a hybrid gateway that handles both production and sandbox token traffic.</Description>
<!-- Server URL of the API gateway -->
<ServerURL>https://localhost:${mgt.transport.https.port}${carbon.context}services/</ServerURL>
<!-- Admin username for the API gateway. -->
<Username>${admin.username}</Username>
<!-- Admin password for the API gateway.-->
<Password>${admin.password}</Password>
<!-- Endpoint URLs for the APIs hosted in this API gateway.-->
<GatewayEndpoint>http://${carbon.local.ip}:${http.nio.port},https://${carbon.local.ip}:${https.nio.port},http//my.ip.address:${http.nio.port},https://my.ip.address:${https.nio.port}</GatewayEndpoint>
</Environment>
</Environments>
</APIGateway>

现在,当我发布 API 时,生产和沙盒 URL 是:

http://my.ip.address:8280/path/to/my/api
https://my.ip.address:8243/path/to/my/api

但是,当我尝试向我的 API URL 发出请求时,出现超时错误。

为什么会这样?

主要问题是我的系统管理员没有为本地网络之外的用户打开82808243端口。

最新更新