[modify] change the device key and domain
This commit is contained in:
parent
578e1ba496
commit
c8be4e5d2c
@ -5,7 +5,7 @@
|
||||
set -e
|
||||
|
||||
# bark key
|
||||
deviceKey='PFEMc4eVAQutUrcAbXrVCb'
|
||||
deviceKey='R5BU8VnMn3ufSFjMnwSmd6'
|
||||
# push payload
|
||||
# json='{"body": "test", "sound": "birdsong"}'
|
||||
json=`cat /opt/scripts/alert/bark/option.json`
|
||||
@ -25,4 +25,4 @@ ciphertext=$(echo -n $json | openssl enc -aes-256-cbc -K $key -iv $iv | base64)
|
||||
ciphertext=`echo $ciphertext | tr -d ' '`
|
||||
|
||||
# 密文可能有特殊字符,所以记得 URL 编码一下。
|
||||
curl --data-urlencode "ciphertext=$ciphertext" --data-urlencode "iv=QA475QXtg4YaGQzc" https://bark.erratic.eu.org/$deviceKey
|
||||
curl --data-urlencode "ciphertext=$ciphertext" --data-urlencode "iv=QA475QXtg4YaGQzc" https://bark.rustle.cc/$deviceKey
|
||||
|
Loading…
x
Reference in New Issue
Block a user