Custom notify hooks for acme.sh. See https://github.com/acmesh-official/acme.sh/wiki/notify.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tobias Strobel aa26f9c859
Initial commit
10 months ago
LICENSE.md Initial commit 10 months ago
README.md Initial commit 10 months ago
gotify.sh Initial commit 10 months ago

README.md

acme.sh-notify-hooks

Custom notify hooks for acme.sh. See https://github.com/acmesh-official/acme.sh/wiki/notify.

Set notification for Gotify Webhooks

First create a new app token in your Gotify instance, then set it in your systems environment:

export GOTIFY_WEBHOOK_URL="..." # e.g. https://example.com (don't use a trailing slash!)
export GOTIFY_TOKEN="..."

Make sure the file gotify.sh is in ~/.acme.sh/notify/gotify.sh.

OK, let's set notification hook:

acme.sh --set-notify  --notify-hook gotify

The GOTIFY_WEBHOOK_URL and GOTIFY_TOKEN will be saved in ~/.acme.sh/account.conf and will be reused when needed.

The priority of Gotify message is set based on the returned status code:

  • success: normal priority (4)
  • error: high priority (8)
  • skipped: low priority (1)