diff --git a/notify.md b/notify.md index 649e24a..98b2729 100644 --- a/notify.md +++ b/notify.md @@ -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 +```