Commit Graph
46 Commits
Author SHA1 Message Date
michael 7c3eb7debd Send down and back-up alerts to Mattermost (#6)
Deploy to Cloudflare / build-and-deploy (push) Skipped
Check / check (push) Successful in 10m48s
The webhook address is private: uptime.config.ts names it as secret:MATTERMOST_WEBHOOK and the
worker reads the Worker secret of that name (bound in deploy.tf from the GitHub Actions secret).
The address is kept out of the logs. Alerts wait 3 minutes before saying something is down.
2026-11-23 10:11:52 -05:00
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
michael 035d23d1e3 Check apps in US East through the status canary (#4) 2026-11-22 23:50:58 -05:00
michael e9de6c5b69 Publish the status page without the apps check (#3)
No canary app runs on the node yet, so the Apps in US East monitor would
show the page as down. It stays in the config, commented out, until one
exists.
2026-11-22 10:03:30 -05:00
Michael Kinder 6d4a313bcc Check the dashboard at cottage.host
The dashboard moved from app.cottage.host to cottage.host.
2026-11-21 23:44:37 -05:00
Michael Kinder fdc16007e3 Restyle the status page in Cottage's brand
The page (pages/, components/, styles/) is rewritten in Cottage's brand, replacing Mantine.
- Brand files: tokens, fonts and component CSS copied from Hearth; logo, pod row, status
  pill and banner ported from the brand handbook.
- Themes: light by default, dark when the OS asks.
- Services: grouped; each has a status pill, uptime and 90 daily bars (30 on phones).
- Bars: each bar has a text label, keyboard navigation and a day card.
- Response-time chart: optional, drawn in brand colours.
- Notices: colour-coded posted notices and planned maintenance.
- Incident history: by month, with the brand's empty state.

The check worker, D1 storage, types and Terraform are untouched, so upstream merges stay
clean. uptime.config.ts lists Cottage's services (website, dashboard, apps in US East).
`npm run dev` shows sample data (?sample=outage|maintenance|empty) since there's no D1.

Deploys are gated on the CLOUDFLARE_DEPLOY repository variable until launch, Wrangler
telemetry is off, and a Check workflow lints, type-checks and builds every pull request.
Removed upstream's issue-translation workflow, funding file and translations.
2026-11-21 14:04:00 -05: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 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 e87e350d6d feat: skip error change notification option 2025-11-05 01:06:21 +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 1d12cf0b3e docs: add link to wiki 2025-10-16 00:46:46 +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
f88e286b9c Upcoming and active maintenance (#142)
* Updated with intial commit
- MaintenanceAlert.tsx now handles upcoming and active maintenance alerts.
- OverallStatus.tsx updated to include collapsible sections for ongoing and upcoming maintenance alerts.

* Updated MaintenanceAlert layout for better responsiveness

* Revert the uptime.config.ts

* fix: Added type definitions for active and upcoming maintenances

* Update components/MaintenanceAlert.tsx

Co-authored-by: Bennet Gallein <[email protected]>

* Update: added `pageConfig.maintenances.upcomingColor` to control upcoming maintenance alert colors.

* Feature: Added a config option for the favicon.

* keep original styles

* remove collapse

* add back a different collapse for upcoming events

* css grid to align date text

* tiny css changes and cleanup

---------

Co-authored-by: Bennet Gallein <[email protected]>
Co-authored-by: lyc8503 <[email protected]>
2025-09-27 21:30:13 +08:00
lyc8503 4bf07257f2 misc: add scheduled maintenance example 2025-09-27 00:40:19 +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 751373d5dd feat: remote checker should work, add config example 2025-04-14 02:14:56 +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 8c818017c1 feat: grouping 2025-03-26 00:33:24 +08:00
lyc8503 d1857502bb feat: option to hide latency chart 2025-03-25 17:41:32 +08:00
lyc8503 fe9e2ae2e0 feat: forbidden keyword 2025-03-25 00:01:50 +08:00
lyc8503 e2b469c39d fix #12: http basic auth 2024-08-21 16:21:44 +08:00
lyc8503 733d4f1ecb update links 2024-06-30 12:12:53 +08:00
lyc8503 0eb03ebfff use apprise for better notification & fix callback bug & improve log 2024-05-20 14:18:08 +08:00
lyc8503 e4eb015991 fix wrong args list in callback 2024-03-18 17:37:17 +08:00
lyc8503 904e0bc49b ts type and ui bug fixes 2024-03-18 16:21:28 +08:00
lyc8503 8b17cb840b minor fixes 2024-03-18 15:44:26 +08:00
Eric Wang 0c6556eda9 feat: add notify telegram & bark, and some minor fixes 2024-03-18 00:06:31 +08:00
lyc8503 9bdeec90f2 better callbacks, fix config leak 2023-12-09 14:59:59 +08:00
lyc8503 759a0f6159 feat: geo-specific check 2023-12-08 15:19:38 +08:00
lyc8503 22ed19e1b2 feat: tooltip for monitor 2023-11-20 02:12:49 +08:00
lyc8503 504197a94a fix: typo in config example 2023-11-19 15:08:52 +08:00
lyc8503 cef0427411 Update uptime.config.ts 2023-11-19 12:15:20 +08:00
lyc8503 ee1721ee22 use a more detailed example 2023-11-19 12:14:33 +08:00
lyc8503 76ffca561f update readme & config 2023-11-19 00:10:50 +08:00
lyc8503 87611700c3 format code and no semi 2023-11-06 00:51:41 +08:00
lyc8503 eba65bd654 format code 2023-11-06 00:38:30 +08:00
lyc8503 4817fef547 header responsive update, fix worker tcp read 2023-10-28 01:38:21 +08:00
lyc8503 7e694fd9b7 add advanced checks 2023-10-23 15:29:27 +08:00
lyc8503 1f4900b143 disable fetch cache 2023-10-17 01:11:28 +08:00
lyc8503 7b85b89325 almost done: more and more css 2023-10-16 12:09:48 +08:00
lyc8503 f9212c88a6 wip: frontend header & overall status 2023-10-15 02:00:29 +08:00
lyc8503 cdd43685f2 wip: worker & pages 2023-10-14 15:21:52 +08:00