mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-08-18 15:13:29 +08:00
Add usage for matrix notify plugin #6980
18
notify.md
18
notify.md
@@ -764,3 +764,21 @@ acme.sh --set-notify --notify-hook opsgenie
|
||||
```
|
||||
|
||||
The configuration will be saved in ~/.acme.sh/account.conf and will be reused when needed.
|
||||
|
||||
## 27. Set notification for Matrix ##
|
||||
|
||||
First get your Matrix Homeserver URL (e.g. https://matrix-client.matrix.org), API token, Room ID and set them in your systems environment:
|
||||
|
||||
```sh
|
||||
export MATRIX_SERVER_URL="..." # overwrites Matrix Homeserver URL
|
||||
export MATRIX_API_TOKEN="..." # overwrites Matrix Access token
|
||||
export MATRIX_ROOM_ID="..." # overwrites Matrix Room ID
|
||||
```
|
||||
|
||||
Ok, let's set notification hook:
|
||||
|
||||
```
|
||||
acme.sh --set-notify --notify-hook matrix
|
||||
```
|
||||
|
||||
The `MATRIX_SERVER_URL`, `MATRIX_API_TOKEN` and `MATRIX_ROOM_ID` will be saved in ~/.acme.sh/account.conf and will be reused when needed.
|
||||
Reference in New Issue
Block a user