Devportal 组合框中的 "localhost" 没有使用我的 VMware 的 IP 地址,但是页面的 URL 有

The "localhost" in the combobox in Devportal doesn't take the IP adresse of my VMware, but the URL of the page does

我在 Docker/VMware/Linux 上安装了 WSO2 API Manager 3.2,当我想测试 API 在“Devportal 的“Publisher”上创建和发布时”,选择 URL 地址的服务器组合框总是显示 https://localhost:8243/test/1.0,但我想要: https://x.x.27.197:8243/test/1.0

当我在 Postman 上测试相同的 URL(https://x.x.27.197:8243/test/1.0) 时,它成功了!

非常感谢。

the image attached describes more the problem

您是否尝试更改 deployment.toml 中的网关环境配置?您可以通过更新配置中的 http_endpointhttps_endpoint 值来更改网关 url 值。

例如,

[[apim.gateway.environment]]
name = "Production and Sandbox"
type = "hybrid"
display_in_api_console = true
description = "This is a hybrid gateway that handles both production and sandbox token traffic."
show_as_token_endpoint_url = true
service_url = "https://localhost:${mgt.transport.https.port}/services/"
username= "${admin.username}"
password= "${admin.password}"
ws_endpoint = "ws://localhost:9099"
wss_endpoint = "wss://localhost:8099"
http_endpoint = "http://<your_ip>:${http.nio.port}"
https_endpoint = "https://<your_ip>:${https.nio.port}"

有关详细信息,请参阅 this