diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index e4f6115..2647363 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,6 +1,6 @@ # These are supported funding model platforms -github: [tolaleng] +github: #[tolaleng] patreon: # Replace with a single Patreon username open_collective: #checkcle ko_fi: # Replace with a single Ko-fi username diff --git a/README.md b/README.md index a36a966..0a74b58 100644 --- a/README.md +++ b/README.md @@ -128,19 +128,9 @@ docker run -d \ --- ## Sponsors -πŸ™ We're incredibly thankful to our sponsors. Your contributions enable us to maintain infrastructure (hosting, domains), run tests, and continue developing valuable features. +Sponsorships will no longer be accepted. From now on, support will only be accepted in the form of ecosystem and community partnerships that provide infrastructure such as cloud servers, domains, or hosting credits. -### πŸ₯ˆ Silver Uptime - - - - - -### 🧑 Ping Supporter - - - - +If you’re a tech company interested in supporting CheckCle, please contact the author directly at tolaleng@checkcle.io ### 🀝 Ecosystem & Community Partner
@@ -163,12 +153,6 @@ docker run -d \
- - - - - - --- diff --git a/server/service-operation/notification/ntfy.go b/server/service-operation/notification/ntfy.go index 88ec7a5..9674445 100644 --- a/server/service-operation/notification/ntfy.go +++ b/server/service-operation/notification/ntfy.go @@ -32,6 +32,11 @@ func (ns *NtfyService) SendNotification(config *AlertConfiguration, message stri req.Header.Set("Title", "πŸ”” CheckCle Service Alert") req.Header.Set("Tags", "monitoring") req.Header.Set("Priority", "default") + + // Add API token authentication if provided + if config.APIToken != "" { + req.Header.Set("Authorization", "Bearer "+config.APIToken) + } // Send the request client := &http.Client{} @@ -111,6 +116,11 @@ func (ns *NtfyService) SendNotificationWithDetails(config *AlertConfiguration, m req.Header.Set("Tags", tags) req.Header.Set("Priority", priority) + + // Add API token authentication if provided + if config.APIToken != "" { + req.Header.Set("Authorization", "Bearer "+config.APIToken) + } // Send the request client := &http.Client{}