From a7df80c50aea90de1cf107c6d1b4e23ddce4db95 Mon Sep 17 00:00:00 2001 From: QihanNX Date: Wed, 29 Jul 2026 18:26:26 +0800 Subject: [PATCH] Refactor maintenances configuration with detailed structure --- uptime.config.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/uptime.config.ts b/uptime.config.ts index c253f16..b96c562 100644 --- a/uptime.config.ts +++ b/uptime.config.ts @@ -91,8 +91,23 @@ const workerConfig: WorkerConfig = { // const maintenances: MaintenanceConfig[] = [] -const maintenances: MaintenanceConfig[] = [LoliaFRP 各节点及官网 API 等正在短时间内遭受频繁的 DDOS 攻击,对此如果节点出现不稳定现象敬请谅解 -请各位非必要请勿随意泄露节点 IP,网站类应用可使用 CDN 服务器防护,感谢大家的支持与理解]; +const maintenances: MaintenanceConfig[] = [ + { + // [Optional] Monitor IDs to be affected by this maintenance + monitors: [''], + // [Optional] default to "Scheduled Maintenance" if not specified + title: '温馨提示', + // Description of the maintenance, will be shown at status page + body: 'LoliaFRP 各节点及官网 API 等正在短时间内遭受频繁的 DDOS 攻击,对此如果节点出现不稳定现象敬请谅解,请各位非必要请勿随意泄露节点 IP,网站类应用可使用 CDN 服务器防护,感谢大家的支持与理解', + // Start time of the maintenance, in UNIX timestamp or ISO 8601 format + start: '2026-07-28T00:00:00+08:00', + // [Optional] end time of the maintenance, in UNIX timestamp or ISO 8601 format + // if not specified, the maintenance will be considered as on-going + end: '2026-08-10T00:00:00+08:00', + // [Optional] color of the maintenance alert at status page, default to "yellow" + color: 'blue', + }, +] // Don't edit this line export { maintenances, pageConfig, workerConfig }