Preface#
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 it allows you to gain a lot of knowledge during the process.
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.
Deployment#
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. Later, it was refactored by a Chinese developer named Su Yang using the Go language and open-sourced. The open-source repository can be found at: https://github.com/soulteary/docker-flare
Docker Method#
docker run --rm -it -p 5005:5005 -v `pwd`/app:/app soulteary/flare
Kubernetes Method#
Finally, publish and open a port to access it.
Configuration#
Click the help button at the bottom left corner of the page to enter the global settings page.
You can add tags for content editing. The following is the navigation content I prepared when writing this blog, which only includes some streaming media-related applications.
Afterword#
The entire application may seem simple, but it is not easy. It can even be set up for user login and used as a sharing page on the public network. For more details, please read Su Yang's blog