snapraid-aio-script icon indicating copy to clipboard operation
snapraid-aio-script copied to clipboard

Make the healthchecks.io URL configurable

Open Elmardus opened this issue 2 years ago • 1 comments

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?

Elmardus avatar Feb 07 '22 10:02 Elmardus

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 avatar Feb 07 '22 22:02 auanasgheps

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

It's available in the dev branch.

auanasgheps avatar Dec 06 '22 09:12 auanasgheps