banner
Aki

Aki

太阳能维修,月亮可更换,星星不闪包退换。
twitter

太多服務記不住?一個書籤來解決

前言#

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:

  1. 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.
  2. 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 方式#

image

image

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.

image

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.

image

后记#

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

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。