mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 20:39:12 +08:00
added option for ntfy access tokens
This commit is contained in:
@@ -13,6 +13,10 @@ class Ntfy extends NotificationProvider {
|
||||
headers = {
|
||||
"Authorization": "Basic " + Buffer.from(notification.ntfyusername + ":" + notification.ntfypassword).toString("base64"),
|
||||
};
|
||||
} else if (notification.ntfyaccesstoken) {
|
||||
headers = {
|
||||
"Authorization": "Bearer " + notification.ntfyaccesstoken,
|
||||
};
|
||||
}
|
||||
let data = {
|
||||
"topic": notification.ntfytopic,
|
||||
|
Reference in New Issue
Block a user