auanasgheps / snapraid-aio-script

The definitive all-in-one SnapRAID script on Linux. Diff, sync, scrub are things of the past. Manage SnapRAID and much, much more!
GNU General Public License v3.0
241 stars 36 forks source link

Make the healthchecks.io URL configurable #32

Closed Elmardus closed 1 year ago

Elmardus commented 2 years ago

I am running a selfhosted instance of Healtchecks, and I would like to set up reporting in the Snapraid-AIO script. Currently the URL is hardcoded to: curl -fsS -m 5 --retry 3 -o /dev/null https://hc-ping.com/"$HEALTHCHECKS_ID"/start

Can the URL be modified to be a variable, with a default to 'https://hc-ping.com' to not break compatibility?

auanasgheps commented 2 years ago

You can use the HOOK_NOTIFICATION feature and simply enter curl -fsS -m 5 --retry 3 -o /dev/null https://your-site.com/"$HEALTHCHECKS_ID"/start

If I were to change the Healthchecks implementation I would expose the full URL, but I would break compatibility.

auanasgheps commented 1 year ago

This is fixed thanks to the kind contribution of @phidauex.

It's available in the dev branch.