Fixed Mattermost Bot documentation: Incorrect variable names and sample value for API URL. Removed potentially sensitive channel ID and bot token from sample values.

master
Bryce Chidester 2024-01-08 12:18:56 -08:00
parent b7f9fdceff
commit 10c0d94c8a
1 changed files with 4 additions and 4 deletions

@ -677,17 +677,17 @@ acme.sh --set-notify --notify-hook aws_ses
## 24. Set notification for Mattermost Bot ## 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. 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. Then set the environment variables.
API URL (current at https://api.mattermost.com/): API "/posts" URL (current at https://api.mattermost.com/):
```sh ```sh
export MATTERMOST_API_URL=https://you_mattermost_server/api/v4 export MATTERMOST_API_URL=https://you_mattermost_server/api/v4/posts
``` ```
Channel ID for notifications. Find the Channel ID in the Web Interface or Desktop Application by click View Info button. Channel ID for notifications. Find the Channel ID in the Web Interface or Desktop Application by click View Info button.
```sh ```sh
export MATTERMOST_API_URL=7qirnh3c5trg9xa6za38shdjby export MATTERMOST_CHANNEL_ID=z1y2x3w4v5u6t7s8r1q2p3o4n5
``` ```
Bot Token: Bot Token:
```sh ```sh
export ATTERMOST_BOT_TOKEN=eb3ex6mg6id5xen5zmtrjcjrfo export MATTERMOST_BOT_TOKEN=a1b2c3d4e5f6g7h8i1j2k3l4m5
``` ```
and finally turn on acme.sh notifications: and finally turn on acme.sh notifications:
```sh ```sh