How to make HA recover after Internet connection interruption?

I had an internet connection interruption for about 15 minutes today a few hours ago. It’s back up now, but since then, none of my automations (all built in Node-RED) are working and I can’t reach my HA instance the normal way (I access through the Nabu Casa ingress). Fortunately I’m home so I’m able to remote into it and reboot…but if I was away from home, this would have completely killed my automations and I would have no way to recover.

After rebooting the server (a VirtualBox VM) everything’s fine. How can I make sure that it can recover on its own after an interruption like this?

Similar problems with my shitty DSL connection.
I set up a WireGuard Server with DDNS and can remote in like that easily, also good if Home Assistant goes down, I still have access to my local LAN (so you could reboot etc.)
If that’s not an option for you, you could set up a normal automation (not Node-RED):

I don’t know if that’s the issue though. Likely you’ve received a new IP address by your provider and the DDNS screwed up / didn’t refresh before you manually checked.
So, you could set up the DNS IP integration and have an automation which triggers a reboot 5-10 minutes after the IP has changed and the Ping binary_sensor has been down