Add notify Slack

master
Honza Hommer 2019-05-18 18:43:06 +02:00
parent 3a6f3fa94a
commit c5b435b950
1 changed files with 20 additions and 1 deletions

@ -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.
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.