微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Devportal 组合框中的“localhost”不采用我的 VMware 的 IP 地址,但页面的 URL 是

如何解决Devportal 组合框中的“localhost”不采用我的 VMware 的 IP 地址,但页面的 URL 是

我已经在 Docker/VMware/Linux 上安装了 WSO2 API Manager 3.2,当我想测试在“Devportal”的“Publisher”上创建和发布的 API 时,选择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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。