From 09ece0a77e70029b9397408a7aaa94407abcc9d1 Mon Sep 17 00:00:00 2001 From: Tola Leng Date: Tue, 9 Sep 2025 20:21:20 +0700 Subject: [PATCH 1/3] feat(auth): add token support for ntfy - Updated the NTFY service to support API token authentication by adding Authorization Bearer header when api_token is provided. Closes: #89 --- server/service-operation/notification/ntfy.go | 10 ++++++++++ 1 file changed, 10 insertions(+) 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{} From 7e7522608a668db866c103ad4d3859ff1b1c9230 Mon Sep 17 00:00:00 2001 From: Tola Leng Date: Tue, 9 Sep 2025 20:39:09 +0700 Subject: [PATCH 2/3] chore: deactivate GitHub donation --- .github/FUNDING.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 31e5335aacba6e54b5ac8209e23a20ec89bf4e27 Mon Sep 17 00:00:00 2001 From: Tola Leng Date: Tue, 9 Sep 2025 20:50:33 +0700 Subject: [PATCH 3/3] docs(readme): deactivate donations, accept only infra support (cloud, domain, hosting) --- README.md | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) 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 \
- - - - - - ---