From e763a0e0b40a661e6158a68faab640f6e87b9379 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 28 Apr 2019 22:18:37 +0800 Subject: [PATCH] Updated notify (markdown) --- notify.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/notify.md b/notify.md index 7725804..9f5e2db 100644 --- a/notify.md +++ b/notify.md @@ -3,6 +3,21 @@ acme.sh can send notifications in its cronjob. Every night when the renew cronjob runs, you may receive notifications based on `notify-level` and `notify-mode`. +``` + + --notify-level 0|1|2|3 Set the notification level: Default value is 2. + 0: disabled, no notification will be sent. + 1: send notification only when there is an error. No news is good news. + 2: send notification when a cert is successfully renewed, or there is an error + 3: send notification when a cert is skipped, renewdd, or error + --notify-mode 0|1 Set notification mode. Default value is 0. + 0: Bulk mode. Send all the domain's notifications in one message(mail) + 1: Cert mode. Send a message for every single cert. + --notify-hook [hookname] Set the notify hook + + +``` + The notifications can be emails for another supported way, such as request to a webhook etc. As for now, there is email notification supported, but there will be more soon. You can also implement your hook. @@ -19,20 +34,7 @@ acme.sh --set-notify [--notify-mode 0] ``` -``` - --notify-level 0|1|2|3 Set the notification level: Default value is 2. - 0: disabled, no notification will be sent. - 1: send notification only when there is an error. No news is good news. - 2: send notification when a cert is successfully renewed, or there is an error - 3: send notification when a cert is skipped, renewdd, or error - --notify-mode 0|1 Set notification mode. Default value is 0. - 0: Bulk mode. Send all the domain's notifications in one message(mail) - 1: Cert mode. Send a message for every single cert. - --notify-hook [hookname] Set the notify hook - - -```