Commit Graph
65 Commits
Author SHA1 Message Date
michael cf977e65da Read the apps check address from a Worker secret (#5)
A monitor's target can be secret:NAME: the worker reads the address
from the Worker secret NAME at check time, bound in deploy.tf from the
GitHub Actions secret of the same name. The address never appears in
this repository, and any error text that mentions it is scrubbed before
it's stored or shown. Apps in US East now checks a real app this way.
2026-11-23 03:35:25 -05:00
bcdi 520c0b8dcf include location hint in remote checker DO name (#223) 2026-10-07 20:22:32 +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 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 3de3640d17 feat: D1 upgrade: deployment and migration process DONE! 2026-01-03 23:06:32 +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
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 ee2d23f151 feat: add default UA 2025-11-06 01:02:29 +08:00
lyc8503 70ad2e8677 feat: make cooldown optional and remove it from simple config 2025-11-05 23:10:18 +08:00
lyc8503 e87e350d6d feat: skip error change notification option 2025-11-05 01:06:21 +08:00
lyc8503 1b534c518a feat: multiple webhooks 2025-11-04 23:53:10 +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 f541a9939b fix: deep copy payload obj 2025-10-15 21:54:53 +08:00
Steven Crockerandlyc8503 4b24ad38a2 Add webhook support to notification property in config (#143)
* Add basic webhook option to workerConfig.notification as alternative to apprise

* Add uptime.config.ts example for webhook option

* Removed trailing commas from newly added types for consistency

* Add ability to customize webhook body

* use template

---------

Co-authored-by: lyc8503 <[email protected]>
2025-10-15 20:11:32 +08:00
lyc8503 65408d4962 fix: incident header margin, run prettier 2025-09-21 15:28:59 +08:00
keito 5769a52f0c fix: improve types for callback-related config (#135)
* fix: allow partial callbacks in config types

* fix: allow non-async callback functions in config types

* fix: specify type of monitor argument in callback type

* fix: use generics type for env argument in callback type
2025-08-07 18:47:19 +08:00
sususu98 7156fd83f2 fix(monitor): update import path for MonitorTarget (#120) 2025-06-24 10:20:31 +08:00
lyc8503 8a097698be Merge branch 'main' of https://github.com/lyc8503/UptimeFlare 2025-05-13 16:13:45 +08:00
lyc8503 813ec1ab96 fix #109: kill DO to avoid extra usage 2025-05-13 16:13:35 +08:00
Bennet Galleinandlyc8503 a6c8eb6e12 maintenance mode (#101)
* feat: move types

* feat: add maintenance alert

* feat: move to config/base class to have fallback values on missing exports

* fix: wrong import for types

* Revert "fix: wrong import for types"

This reverts commit ca2b2e3a68464cfa1b4aef4d99978de02591df74.

* Revert "feat: move to config/base class to have fallback values on missing exports"

This reverts commit 9932ea2590193aabd248fbba6b2c3a215da45d18.

* fix: imports

* chore: formatting

* fix: handle filtering for global status

* fix: pass props

* fix: ignore active maintenances when sending notifications

* fix: mark as warning when monitor is in maintenance

* fix: title width & warning icon

* fix: remove accordeons again

* alert config/style changes, worker code improve

* update example config

* update example config

* set monitors to be optional

---------

Co-authored-by: lyc8503 <[email protected]>
2025-05-01 01:09:53 +08:00
lyc8503 4bcf4173ea misc: run prettier 2025-04-19 21:50:43 +08:00
lyc8503 f02aef8d00 DurableObject remote checker, binding TODO 2025-04-14 02:12:06 +08:00
lyc8503 0f2e9313c1 feat: newer compatibility_date, should fix fetch custom port 2025-04-12 22:20:33 +08:00
lyc8503 5203ef3d4b WIP: update packages 2025-04-12 22:20:33 +08:00
lyc8503 6a7effe668 WIP: check proxy on pages 2025-04-12 22:20:33 +08:00
lyc8503 8b07dfe30e SHOULD WORK: worker support proxy 2025-04-11 01:29:46 +08:00
lyc8503 9bc5deb99d feat #88 notification blacklist 2025-04-07 00:50:16 +08:00
lyc8503 fe9e2ae2e0 feat: forbidden keyword 2025-03-25 00:01:50 +08:00
lyc8503 e448e95909 Remove 90-day history (not used) to avoid CPU limit exceed on free tier 2025-03-24 20:55:49 +08:00
lyc8503 dcc2dbb278 remove old incident, keep history only for 90d 2024-06-30 21:54:57 +08:00
lyc8503 0eb03ebfff use apprise for better notification & fix callback bug & improve log 2024-05-20 14:18:08 +08:00
lyc8503 50fb6a429b fix #28: ipv6 target parse fix 2024-05-19 16:35:06 +08:00
lyc8503 8102258e3b add logging, use external link 2024-03-18 17:01:58 +08:00
Eric Wang 4963a4815a fix: duplicate account_id in actions, typo fix 2024-03-18 08:26:20 +08:00
Eric Wang 0c6556eda9 feat: add notify telegram & bark, and some minor fixes 2024-03-18 00:06:31 +08:00
lyc8503 868f943f93 fix bug in record interval 2024-01-30 14:24:28 +08:00
lyc8503 31a4d9345a use opened promise for tcp connection test 2024-01-30 13:28:30 +08:00
Tom Plant 3b20472433 feat: local debugging with wrangler
Signed-off-by: Tom Plant <[email protected]>
2024-01-14 08:12:02 +00:00
lyc8503 1e183247cf should fix #4: add a missing withTimeout 2024-01-06 20:17:13 +08:00
lyc8503 9bdeec90f2 better callbacks, fix config leak 2023-12-09 14:59:59 +08:00
lyc8503 dfd78b9ca4 fix: tcp ping timeout latency 2023-12-08 15:40:13 +08:00
lyc8503 759a0f6159 feat: geo-specific check 2023-12-08 15:19:38 +08:00
lyc8503 ccbb48b040 fix: downtime calculation 2023-11-19 15:05:03 +08:00