Updated notify (markdown)

de_frag 2023-09-29 16:00:39 +03:00
parent 4629a23aab
commit 1619bbbae1

@ -673,3 +673,23 @@ export AWS_SES_FROM_NAME="Something"
acme.sh --set-notify --notify-hook aws_ses
```
## 24. Set notification for Mattermost Bot
First, create a bot account on your Mattermost https://developers.mattermost.com/integrate/reference/bot-accounts/. Don't forget save bot's Access Token.
Then set the environment variables.
API URL (current at https://api.mattermost.com/):
```sh
export MATTERMOST_API_URL=https://you_mattermost_server/api/v4
```
Channel ID for notifications. Find the Channel ID in the Web Interface or Desktop Application by click View Info button.
```sh
export MATTERMOST_API_URL=7qirnh3c5trg9xa6za38shdjby
```
Bot Token:
```sh
export ATTERMOST_BOT_TOKEN=eb3ex6mg6id5xen5zmtrjcjrfo
```
and finally turn on acme.sh notifications:
```sh
acme.sh --set-notify --notify-hook mattermost
```