配置网关集群的网关端点



如果我有多个网关工作节点,我如何配置GatewayEndpoint?

我读了设置网关端点的帖子,如果只有一个网关工作节点。在WSO2集群之前,我也有nginx节点,所以我们还需要在存储中向最终用户显示最终端点URL。对于ServerURL,我可以将其配置为url: "https://mgt.gw.devzone.com/services/"。

<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>          
            <ServerURL>https://<API-Gateway-Host>:9443/services/</ServerURL>
            <Username>${admin.username}</Username>
            <Password>${admin.password}</Password>          
            <GatewayEndpoint>http://<API-Gateway-Host>:8280,https://<API-Gateway-Host>:8243</GatewayEndpoint>
       </Environment>
   </Environments>
</APIGateway>

ServerURL你应该指向GW Manager节点。当指定GW worker的url时,你需要指向NginX。你在这里包含的GatewayEndpoint应该解析为NginX, NginX将在工作节点之间负载平衡请求。您在这里添加的URL将显示在API Store中。

最新更新