前言#
There are too many services deployed on the intranet, with different IP addresses and different ports, which are impossible to remember.
There are two solutions:
- Configure a DNS server to resolve the intranet domain name to nginx, and then use nginx to set up port forwarding to achieve domain name access to IP + port.
- Install a bookmark service to manage addresses.
I have tried both methods, but in the end, I chose the second one. As for the reason, although the first method can achieve a permanent solution, setting up domain name resolution and modifying the nginx configuration file is a relatively cumbersome process, and it takes about 3-5 minutes to configure for each new application deployment. There are also benefits, as this process can acquire a lot of knowledge.
The second solution is relatively simple and straightforward, without any extra configuration. After the application is completed, it only takes 1 minute to modify the bookmark.
部署#
There are many online bookmark tools, but I chose Flare because it is feature-rich, beautiful, and lightweight. This application was originally developed by a Polish developer as the Flame bookmark application, and later it was refactored and open-sourced by Su Yang, a developer from China, using the Go language. The open-source address is: https://github.com/soulteary/docker-flare
Docker 方式#
docker run --rm -it -p 5005:5005 -v `pwd`/app:/app soulteary/flare
K8s 方式#
Finally, publish and open a port to access it.
设置#
Click the help button in the lower left corner of the page to enter the global settings page.
You can add tags in the content editor. Here is the navigation content I prepared when writing this blog, which only includes some streaming media-related applications.
后记#
The entire application may seem simple, but it is not easy. It can even set up user login and be placed on the public network as a sharing page. For more details, please read Su Yang's blog