diff --git a/server/notification-providers/pushdeer.js b/server/notification-providers/pushdeer.js index bbd83f4bf..288137d18 100644 --- a/server/notification-providers/pushdeer.js +++ b/server/notification-providers/pushdeer.js @@ -8,7 +8,9 @@ class PushDeer extends NotificationProvider { async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { let okMsg = "Sent Successfully."; - let pushdeerlink = "https://api2.pushdeer.com/message/push"; + let endpoint = "/message/push"; + let serverUrl = notification.pushdeerServer || "https://api2.pushdeer.com"; + let pushdeerlink = `${serverUrl.trim().replace(/\/*$/, "")}${endpoint}`; let valid = msg != null && monitorJSON != null && heartbeatJSON != null; diff --git a/src/components/notifications/PushDeer.vue b/src/components/notifications/PushDeer.vue index f61849630..4fff3befc 100644 --- a/src/components/notifications/PushDeer.vue +++ b/src/components/notifications/PushDeer.vue @@ -1,4 +1,9 @@