From 10c0d94c8aaaf190acd199716409da6a9656cc29 Mon Sep 17 00:00:00 2001 From: Bryce Chidester Date: Mon, 8 Jan 2024 12:18:56 -0800 Subject: [PATCH] Fixed Mattermost Bot documentation: Incorrect variable names and sample value for API URL. Removed potentially sensitive channel ID and bot token from sample values. --- notify.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notify.md b/notify.md index b21cf45..6ee5da8 100644 --- a/notify.md +++ b/notify.md @@ -677,17 +677,17 @@ 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/): +API "/posts" URL (current at https://api.mattermost.com/): ```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. ```sh -export MATTERMOST_API_URL=7qirnh3c5trg9xa6za38shdjby +export MATTERMOST_CHANNEL_ID=z1y2x3w4v5u6t7s8r1q2p3o4n5 ``` Bot Token: ```sh -export ATTERMOST_BOT_TOKEN=eb3ex6mg6id5xen5zmtrjcjrfo +export MATTERMOST_BOT_TOKEN=a1b2c3d4e5f6g7h8i1j2k3l4m5 ``` and finally turn on acme.sh notifications: ```sh