WSO2 Publisher/Store api-manager.xml 使用网关集群配置 GatewayEndpoint

WSO2 Publisher/Store api-manager.xml config GatewayEndpoint with gateway clustering

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

我读了 , it that case just has one gateway worker node. I also had nginx node before WSO2 clustering, so we also need to display final endpoint URL in store to end users. for ServerURL, i can config it as url: "https://mgt.gw.devzone.com/services/ 的 post" .

<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 URLs 时,您需要指向 NginX。您在此处包含的 GatewayEndpoint 应解析为 NginX,NginX 将负载平衡工作节点之间的请求。您在此处添加的 URL 将显示在 API 商店中。