Introduction#
Because I have installed and used Appnode on my servers before, I really like its cluster management and synchronized configuration file functions. However, if I need to synchronize websites, it becomes too troublesome and often takes half an hour to manually synchronize. So I need software like this. It is written in Flutter and operates through the Appnode API.
In the following, "Controller" refers to the control center, and "Node" refers to the controlled end.#
Main Content#
First, open your Appnode, you need the controller to enable the API service and set the port and key as shown in the figure.
Then open the software, enter your IP port and your key, and click Save.
It will list all the servers on this controller.
In general, I deploy static websites on the controller and then use synchronization commands to perform synchronization.
You need to deploy your website or reverse proxy on the controller, and then you can synchronize as shown in the figure. You can select all servers and force synchronization. Synchronizing to the node will overwrite the existing content on the node and delete any sites on the node that are not selected on the controller. If not selected, it will add the synchronization.
If you want to build your own CDN, but you have 30 websites, you can open a VIP account for the controller, while the nodes do not need it. Synchronization can bypass the website limit on the nodes.
You can also execute SSH commands in batches.
For clearing the cache of a CDN, you can directly use the batch execution of SSH commands to remove the cache folder of that site.