mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-03-26 19:00:11 +08:00
Add Microsoft Teams
parent
5181216c11
commit
b0a76631bb
20
notify.md
20
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.
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user