louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
60.3k stars 5.39k forks source link

Retrying Cloudflare Tunnel if it fails on boot #5346

Open benjani85 opened 1 week ago

benjani85 commented 1 week ago

⚠️ Please verify that this question has NOT been raised before.

πŸ›‘οΈ Security Policy

πŸ“ Describe your problem

In a scenario where I have a power outage and all my systems shutdown, when the power comes back and they start up again I find that uptime kuma comes up before my router/DNS. This causes the Cloudflare tunnel to be stopped under the Reverse Proxy section.

Is there a way to have it retry a few times before giving up? I found the command to run to bring up the tunnel by looking at the process under the pm2-pi.service but I don't know how to manually start the cloudflared process that way.

πŸ“ Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

1.23.14

πŸ’» Operating System and Arch

Raspberry Pi 2 - Raspbian 12

🌐 Browser

Chrome 130.0.6723.117

πŸ–₯️ Deployment Environment