mcrudelis / Fallback-server

Serveur de secours en cas de défaillance de mon serveur perso
GNU General Public License v3.0
1 stars 0 forks source link

Feature Request : Automatically close feedback server. #3

Open Aeris1One opened 4 years ago

Aeris1One commented 4 years ago

In v.0.5 you added automated outage gestion, now if there's an outage, the feedback server is setting up and DNS is changing to match feedback server IP. Maybe you can go further : now youehave to manually revert DNS after an outage and manually start the close-feedback script. It seems possible to automatically, after main server is back online, execute close-feedback script and to revert DNS settings to main IP.

Thanks for reading my idea, and thanks you for your awesome work !

PS: Vous pouvez répondre en Français, j'ai préféré poster en Anglais mais je suis français de langue maternelle.

maniackcrudelis commented 4 years ago

Hi

To not revert back to the main server was actually on purpose. The main idea is to have a server available to answer your request, whether it's the main or the fallback. Considering the situation, as for example a break down of your internet connectivity, you would have your fallback available for email and other distant services. But still use your local service from your home. You may have a lot a different situations when your fallback start. Because of that, I decided it would be better to not go back automatically to the main server but to let the admin decide when and especially how he would like to do it.

Still, as using the command line is clearly not the easiest way, I recently added, in 0.8~ynh1, actions to do that operation from the admin panel of YunoHost.

Also, as I'm thinking about it, if you close the fallback automatically, the main server won't know that the fallback has closed. so you would end with no server available behind your domain name.