fix: add matrix hook url to env

This commit is contained in:
Alex Kelly 2023-01-17 09:43:24 -05:00
parent f7b291d7c7
commit 590c480588
2 changed files with 3 additions and 1 deletions

View file

@ -82,7 +82,7 @@ cleanup () {
}
send_matrix () {
${CURL} -skd "{\"body\": \"$1\"}" http://192.168.0.101:4785/\?key\=$MATRIX_HOOK_KEY\&room_id\=$MATRIX_HOOK_ROOMID > /dev/null
${CURL} -skd "{\"body\": \"$1\"}" $MATRIX_HOOK_URL/\?key\=$MATRIX_HOOK_KEY\&room_id\=$MATRIX_HOOK_ROOMID > /dev/null
}
notify () {

View file

@ -10,6 +10,8 @@ export RESTIC_REPOSITORY=
export RESTIC_CACHE_DIR=
## matrix notifiction hook settings
# base url for matrix hook
export MATRIX_HOOK_URL=
# api key
export MATRIX_HOOK_KEY=
# room_id, ensure it is in '', because the ! will mess things up