Commit Graph

179 Commits (1de2a6b5d9260b127ddb983d1ccf2b0ec2cc6083)

Author SHA1 Message Date
Jake Vis 1de2a6b5d9
Merge e900bf2873 into 8035521268 2026-11-19 10:32:31 -08:00
jakevis e900bf2873
feat: PUSH (heartbeat) monitors
Adds a monitor type for things that can't be probed from outside, like
cron jobs, backups or devices behind NAT (#95). Instead of being checked
by the worker, the monitored service requests

  /api/push/<monitor id>/<pushToken>

periodically, and the monitor goes down when no heartbeat was received
for `pushGraceSeconds` (default 300).

  {
    id: 'backup',
    name: 'Nightly backup',
    method: 'PUSH',
    target: '',
    pushToken: '<random string>',
    pushGraceSeconds: 300,
  }

How it works:

- `pages/api/push/[id]/[token].ts` is an edge API route of the status
  page, so no change to the worker deployment is needed. It stores the
  time of the last heartbeat in D1 under the key `push:<monitor id>`.
  An unknown monitor and a wrong token both get a 404.
- To limit D1 writes, a heartbeat within 30 seconds of the recorded one
  is accepted without writing.
- The worker reads that time on every run and reports the monitor up or
  down like any other check, so incidents, notifications, grace period
  and callbacks all work unchanged. The error message is kept constant
  during an outage to avoid error reason change notifications.
- `passwordProtection` doesn't apply to `/api/push/`, heartbeats are
  authenticated by the token.
- PUSH monitors have no response time, their latency chart is hidden.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-19 10:13:47 -08:00
Stoil M. Stoilov 8035521268
fix: spell UptimeFlare correctly in default footer (#225) 2026-10-21 10:28:15 +08:00
bcdi 520c0b8dcf
include location hint in remote checker DO name (#223) 2026-10-07 20:22:32 +08:00
lyc8503 a5670e51cb
chore: update FUNDING to ko-fi 2026-06-01 23:10:21 +08:00
lyc8503 c8e2db258c
SECURITY: add advisory link for detail 2026-03-05 01:57:39 +08:00
lyc8503 377a5963c6 SECURITY: fix private config file leak 2026-03-04 21:39:34 +08:00
Bennet Gallein ef8ab25f44
feat(i18n): add german language (#194)
* feat(i18n): add german language

* fix: change lang

* fix: adjust
2026-02-17 09:50:42 +08:00
Nans-ssss 5a69f52653
Add french translation (#190) 2026-02-15 23:38:39 +08:00
Etgpao 73473462fb
sync: fallback to PAT_TOKEN secret when override-token is empty (#181)
* Update token usage in sync workflow

* sync: fallback to PAT_TOKEN secret when override-token is empty

Explain briefly:
UI input field doesn’t evaluate ${{ secrets.* }}, users may paste it and it becomes a literal string.
Add fallback to secrets.PAT_TOKEN to make workflow_dispatch easier and safer.

* More detailed desc

---------

Co-authored-by: lyc8503 <me@lyc8503.net>
2026-01-31 00:59:50 +08:00
lyc8503 d42f03ddc5 chore: setup funding, close #178 2026-01-31 00:39:50 +08:00
lyc8503 a5f65a7943 feat(worker): check all targets in parellel, reduces ~15% cpu time usage in test, also try to a fix rare race condition 2026-01-19 00:52:32 +08:00
KebenSun 5512912b22
fix(worker): omit Globalping ipVersion for IP targets (#177)
Globalping rejects measurementOptions.ipVersion when the measurement target is an IP address.
Add an IP-target guard so ipVersion is only sent for domain targets, preventing validation errors when checking IP:port monitors.
2026-01-17 02:00:49 +08:00
lyc8503 da4bfb888d fix: incorrect status icons and counters caused by undefined !== null 2026-01-05 22:35:18 +08:00
lyc8503 19852f15f7 fix #152: add a missing await when triggering multiple notification webhooks 2026-01-04 22:16:10 +08:00
lyc8503 c467650121 fix #173: add polyfill for fromHex, solve compatibility issues with old browsers 2026-01-04 22:00:19 +08:00
lyc8503 821beb2a87 fix: better D1 error handling in migration 2026-01-03 23:59:40 +08:00
lyc8503 e2ff649ebd fix: avoid multiple deployment processes when PAT is specified 2026-01-03 23:59:31 +08:00
lyc8503 c4cfcc841f Merge branch 'main' of https://github.com/lyc8503/UptimeFlare 2026-01-03 23:31:57 +08:00
lyc8503 3de3640d17 feat: D1 upgrade: deployment and migration process DONE! 2026-01-03 23:06:32 +08:00
Bennet Gallein 5878fff4ba
fix: add maintenances to API response (#171) 2026-01-01 20:45:02 +08:00
lyc8503 0258ae1ddc [WIP] feat: local deployment, still need more testing, data migration & CI todo 2026-01-01 02:26:37 +08:00
lyc8503 e050065a3c [WIP] workers works! (lol) pages+migration todo 2025-12-31 22:19:29 +08:00
Yuan Chiu 3b5cc68d4a
feat: add Traditional Chinese zh-TW (#169)
* feat: add zh-TW

* fix: zh-TW 用語修正
2025-12-31 19:25:28 +08:00
lyc8503 45d86424b2 [WIP] terraform cloudflare provider v5 works! more performance/migration/deployment work todo 2025-12-30 23:19:18 +08:00
lyc8503 8295edd35d fix: typo in flag and cleanup 2025-12-29 22:09:30 +08:00
lyc8503 51bf3be378 fix: always release response body, should fix issue #166 2025-12-24 00:03:18 +08:00
lyc8503 baf489e3cb misc: add nodejs_compat for workers, workers can use secrets from env now 2025-12-23 23:31:02 +08:00
lyc8503 e9d8a1c842 Add Chinese translation (Thank you copilot, and I swear I reviewed the code carefully) 2025-12-23 23:22:33 +08:00
Hyeonwoo Cho 77cdf19f7d
Add github readme badge api (#163)
* add github readme badge api

* return error on monitorId is null

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* delete duplicated boolean check

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Refactor badge endpoint to use KV store

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-10 20:46:27 +08:00
MD. ABU SAYED 64931bf3c4
Add CORS headers to API responses (#162)
The API for status is showing CORS issue: "Response body is not available to scripts (Reason: CORS Missing Allow Origin)" when using from other domain/localhost. To solve this ,CORS header is added. It also possible to specify allowed domain in Env Var in cloudflare and call them directly.
2025-12-05 15:34:59 +08:00
lyc8503 1e0f68721b feat: option to change logo, update docs pic 2025-11-08 12:21:44 +08:00
lyc8503 8aceb68ccc fix: mobile logo style 2025-11-07 02:00:15 +08:00
lyc8503 c2fc0ae8ec feat: set custom footer via config file 2025-11-07 00:01:58 +08:00
lyc8503 14daf3cab1 feat: new logo! finally here. 2025-11-06 23:44:16 +08:00
lyc8503 c2ea95050a fix: improve deploy error handling, try to create missing resources 2025-11-06 20:35:16 +08:00
lyc8503 50be44b54a fix: this workaround SMH doesn't work, add note in docs instead 2025-11-06 02:29:01 +08:00
lyc8503 ee2d23f151 feat: add default UA 2025-11-06 01:02:29 +08:00
lyc8503 001eea274b docs: dev 2025-11-06 00:29:56 +08:00
lyc8503 70ad2e8677 feat: make cooldown optional and remove it from simple config 2025-11-05 23:10:18 +08:00
lyc8503 9401202575 misc: add a simpler example config 2025-11-05 22:52:53 +08:00
lyc8503 8e4fa94886 misc: new favicon~ 2025-11-05 02:20:37 +08:00
lyc8503 78f9f1ee34 fix: page crash when wrong id configured 2025-11-05 01:22:10 +08:00
lyc8503 e87e350d6d feat: skip error change notification option 2025-11-05 01:06:21 +08:00
lyc8503 a1fa753450 Merge branch 'main' of https://github.com/lyc8503/UptimeFlare 2025-11-04 23:53:24 +08:00
lyc8503 1b534c518a feat: multiple webhooks 2025-11-04 23:53:10 +08:00
Nick Pease 03445b59fc
feat: slight style improvements (#153)
- Title case hide + show
- Correct plurality for "maintenance"
2025-11-02 13:57:24 +08:00
lyc8503 e757e1b970 Global ping as check proxy support (#147)
* WIP: http

* improve error handling

* tcp monitoring looks good

* fix globalping bugs and improve logs

* add globalping param

* looks good, add real call to globalping, todo fallback

* stupid JS, forgot bind this

* feat: add globalping city

* run prettier

* fix no magic

* fix missing country in TCP

* update config template
2025-10-29 22:18:39 +08:00
lyc8503 20e7f47b5e fix #148: handle nested webhook payload 2025-10-17 02:08:58 +08:00
lyc8503 1d12cf0b3e docs: add link to wiki 2025-10-16 00:46:46 +08:00