From b0a76631bb8c398082dea2db80487575a397f8e4 Mon Sep 17 00:00:00 2001 From: Honza Hommer <2045468+honzahommer@users.noreply.github.com> Date: Sun, 19 Apr 2020 00:53:06 +0200 Subject: [PATCH] Add Microsoft Teams --- notify.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/notify.md b/notify.md index 95341480..46f95167 100644 --- a/notify.md +++ b/notify.md @@ -338,7 +338,25 @@ A message from acme.sh: Hello, this is a notification from acme.sh If you receive this message, your notification works. ``` - +## 11. Set notification for Microsoft Teams + +First get your [Microsoft Teams Webhook URL](https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/connectors/connectors-using#setting-up-a-custom-incoming-webhook), then set it in your systems environment: + +```sh +export TEAMS_WEBHOOK_URL="" +export TEAMS_THEME_COLOR="" +export TEAMS_SUCCESS_COLOR="" +export TEAMS_ERROR_COLOR="" +export TEAMS_SKIP_COLOR="" +``` + +Ok, let's set notification hook: + +``` +acme.sh --set-notify --notify-hook teams +``` + +The `TEAMS_WEBHOOK_URL`, `TEAMS_THEME_COLOR`, `TEAMS_SUCCESS_COLOR`, `TEAMS_ERROR_COLOR` and `TEAMS_SKIP_COLOR` will be saved in ~/.acme.sh/account.conf and will be reused when needed.