From c5b435b950496adbfe48e577bb0aee4b6dfe38d9 Mon Sep 17 00:00:00 2001 From: Honza Hommer Date: Sat, 18 May 2019 18:43:06 +0200 Subject: [PATCH] Add notify Slack --- notify.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/notify.md b/notify.md index 4bc4169..b95410e 100644 --- a/notify.md +++ b/notify.md @@ -100,4 +100,23 @@ Ok, let's set notification hook: acme.sh --set-notify --notify-hook mail ``` -The `MAIL_BIN`, `MAIL_TO` and `MAIL_FROM` will be saved in ~/.acme.sh/account.conf and will be reused when needed. \ No newline at end of file +The `MAIL_BIN`, `MAIL_TO` and `MAIL_FROM` will be saved in ~/.acme.sh/account.conf and will be reused when needed. + + +## 4. Set notification for Slack Webhooks + +First get your [Slack Webhook URL](https://slack.com/apps/A0F7XDUAZ-incoming-webhooks), then set it in your systems environment: + +```sh +export SLACK_WEBHOOK_URL="..." +export SLACK_CHANNEL="..." # overwrites Slack Webhook channel +export SLACK_USERNAME="..." # overwrites Slack Webhook username +``` + +Ok, let's set notification hook: + +``` +acme.sh --set-notify --notify-hook slack +``` + +The `SLACK_WEBHOOK_URL`, `SLACK_CHANNEL` and `SLACK_USERNAME` will be saved in ~/.acme.sh/account.conf and will be reused when needed. \ No newline at end of file