I have a small java webapp comprising of three microservices - api-service,book-service and db-service all of which are deployed on a kubernetes cluster locally using minikube.
I am planning to keep separate UIs for api-service and book-service , with the common static files served from a separate pod, probably an nginx:alpine image.
I was able to create a front end that serves the static files from nginx:alpine referring to this tutorial.
I would like to use ingress-nginx controller …
我正在寻找一种方法来实现 Windows 10 移动热点的强制门户。这个想法是将连接到热点的所有设备重定向到网页。
我找到了这篇文章,其中展示了如何在 Linux 中执行此操作。
但我一直没能找到类似的 Windows 版本。像这样的帖子被证明是死胡同。
如果需要,我可以使用简单的 nginx 服务器向客户端提供 302 重定向响应,但不喜欢使用任何实现强制门户的现有软件。
更新
我已经使用解决方法成功在客户端(Linux 笔记本电脑、Android 设备等)上触发了强制门户。
每当设备连接到热点时,它都会向一些预定义的网站发送请求,以检查 wifi 连接是否可以访问互联网。如果收到 302 响应,则会生成强制门户窗口。
因此,我将以下条目添加到 Windows 计算机上的主机文件中。
127.0.0.1 clients3.google.com #android
127.0.0.1 connectivitycheck.gstatic.com #android
127.0.0.1 nmcheck.gnome.org #ubuntu
Run Code Online (Sandbox Code Playgroud)
然后,这些请求将使用主机文件条目在本地解析,并发送到 nginx 服务器,该服务器为所有 http 请求提供 302 重定向。
windows network-programming wifi-direct captiveportal hotspot