如何从网络外部调用本地计算机上安装的 OpenStack API?

发布于 2025-01-12 09:15:20 字数 186 浏览 2 评论 0原文

我在本地 Ubuntu 计算机上安装了 OpenStack,并且可以使用本地 IP 地址访问仪表板。我想从外部 Spring Boot 应用程序获取存储上的文件列表。

我查看了文档来验证请求,但我的 REST 端点应该是什么。我无法从网络外部访问 10.0.0.x,那么如何公开本地 OpenStack 以接受来自本地网络外部的 API 调用?

I installed OpenStack on my local Ubuntu machine and can access the dashboard using a local IP address. I want to get the list of files on the storage from an external Spring Boot application.

I looked into the documentation to authenticate the requests but what should be my REST endpoint. I cannot access 10.0.0.x from outside the network so how do I expose my local OpenStack to accept API calls from outside the local network?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眸中客 2025-01-19 09:15:20

显然,根据您的描述,没有办法实现这一目标 - 我无法从网络外部访问 10.0.0.x

我认为你应该有一个 NGINX 反向代理< /a> 可以连接私网(10.0.0.x)和公网(网外)的服务器。

It's obviously there is not way to achieve that from what you describe -- I cannot access 10.0.0.x from outside the network.

I think you should have a NGINX Reverse Proxy server which could connect to the private network(10.0.0.x) and the public network(outside the network).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文