Refactor maintenances configuration with detailed structure

This commit is contained in:
2026-07-29 18:26:26 +08:00
committed by GitHub
parent 5aad5955b0
commit a7df80c50a
+17 -2
View File
@@ -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 }