From 371094a499974f8b8b507c0e911bc33fe183d2c6 Mon Sep 17 00:00:00 2001 From: Steven Crocker Date: Thu, 25 Sep 2025 21:50:16 -0500 Subject: [PATCH] Add uptime.config.ts example for webhook option --- uptime.config.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/uptime.config.ts b/uptime.config.ts index 65e9356..a7b6175 100644 --- a/uptime.config.ts +++ b/uptime.config.ts @@ -91,6 +91,21 @@ const workerConfig: WorkerConfig = { gracePeriod: 5, // [Optional] disable notification for monitors with specified ids skipNotificationIds: ['foo_monitor', 'bar_monitor'], + /* [Optional] use webhook configuration instead of apprise configuration (appriseApiServer & recipientUrl) + webhook: { + // [Required] webhook URL + url: 'https://hooks.zapier.com/hooks/catch/123456/abcdef/', + // [Optional] HTTP method, default to "POST" + method: 'POST', + // [Optional] headers to be sent + headers: { + // [Optional] header defaults to Content-Type: application/json, additional properties will be merged, example of authorization header below + 'Authorization': 'Bearer YOUR_TOKEN_HERE', + }, + // [Optional] timeout in millisecond, defaults to 30000 + timeout: 30000, + }, + */ }, callbacks: { onStatusChange: async ( @@ -143,4 +158,5 @@ const maintenances: MaintenanceConfig[] = [ ] // Don't forget this, otherwise compilation fails. -export { pageConfig, workerConfig, maintenances } +export { maintenances, pageConfig, workerConfig } +