mirror of
https://github.com/ChenQihan666/Lolia-Nodes-Status-Pages.git
synced 2026-08-14 07:52:34 +08:00
99 lines
3.6 KiB
TypeScript
99 lines
3.6 KiB
TypeScript
// This is a simplified example config file for quickstart
|
|
// Some not frequently used features are omitted/commented out here
|
|
// For a full-featured example, please refer to `uptime.config.full.ts`
|
|
|
|
// Don't edit this line
|
|
import { MaintenanceConfig, PageConfig, WorkerConfig } from './types/config'
|
|
|
|
const pageConfig: PageConfig = {
|
|
// Title for your status page
|
|
title: "LoliaFRP节点外部监控",
|
|
// Links shown at the header of your status page, could set `highlight` to `true`
|
|
links: [
|
|
{ link: 'https://docs.lolia.link/', label: '查看文档' },
|
|
{ link: 'https://lolia.link', label: '返回官网', highlight: true },
|
|
],
|
|
}
|
|
|
|
const workerConfig: WorkerConfig = {
|
|
// Define all your monitors here
|
|
monitors: [
|
|
{
|
|
id: '37',
|
|
name: '阿里云北京-1',
|
|
method: 'TCP_PING',
|
|
target: 'cn-bj-3.qwq.fan:10000',
|
|
timeout: 5000,
|
|
},
|
|
{
|
|
id: '6',
|
|
name: '腾讯云北京-1',
|
|
method: 'TCP_PING',
|
|
target: 'cn-bj-1.qwq.fan:7000',
|
|
timeout: 5000,
|
|
},
|
|
{
|
|
id: '40',
|
|
name: '腾讯云北京-2',
|
|
method: 'TCP_PING',
|
|
target: 'cn-bj-4.qwq.fan:30000',
|
|
timeout: 5000,
|
|
},
|
|
{
|
|
id: '29',
|
|
name: '百度云北京-1',
|
|
method: 'TCP_PING',
|
|
target: 'cn-bj-2.qwq.fan:20000',
|
|
timeout: 5000,
|
|
},
|
|
],
|
|
// [Optional] Notification settings
|
|
notification: {
|
|
// [Optional] Notification webhook settings, if not specified, no notification will be sent
|
|
// More info at Wiki: https://github.com/lyc8503/UptimeFlare/wiki/Setup-notification
|
|
webhook: {
|
|
// [Required] webhook URL (example: Telegram Bot API)
|
|
url: 'https://api.telegram.org/bot123456:ABCDEF/sendMessage',
|
|
// [Optional] HTTP method, default to 'GET' for payloadType=param, 'POST' otherwise
|
|
// method: 'POST',
|
|
// [Optional] headers to be sent
|
|
// headers: {
|
|
// foo: 'bar',
|
|
// },
|
|
// [Required] Specify how to encode the payload
|
|
// Should be one of 'param', 'json' or 'x-www-form-urlencoded'
|
|
// 'param': append url-encoded payload to URL search parameters
|
|
// 'json': POST json payload as body, set content-type header to 'application/json'
|
|
// 'x-www-form-urlencoded': POST url-encoded payload as body, set content-type header to 'x-www-form-urlencoded'
|
|
payloadType: 'x-www-form-urlencoded',
|
|
// [Required] payload to be sent
|
|
// $MSG will be replaced with the human-readable notification message
|
|
payload: {
|
|
chat_id: 12345678,
|
|
text: '$MSG',
|
|
},
|
|
// [Optional] timeout calling this webhook, in millisecond, default to 5000
|
|
timeout: 10000,
|
|
},
|
|
// [Optional] timezone used in notification messages, default to "Etc/GMT"
|
|
timeZone: 'Asia/Shanghai',
|
|
// [Optional] grace period in minutes before sending a notification
|
|
// notification will be sent only if the monitor is down for N continuous checks after the initial failure
|
|
// if not specified, notification will be sent immediately
|
|
gracePeriod: 5,
|
|
},
|
|
}
|
|
|
|
// You can define multiple maintenances here
|
|
// During maintenance, an alert will be shown at status page
|
|
// Also, related downtime notifications will be skipped (if any)
|
|
// Of course, you can leave it empty if you don't need this feature
|
|
|
|
// const maintenances: MaintenanceConfig[] = []
|
|
|
|
const maintenances: MaintenanceConfig[] = [LoliaFRP 各节点及官网 API 等正在短时间内遭受频繁的 DDOS 攻击,对此如果节点出现不稳定现象敬请谅解
|
|
请各位非必要请勿随意泄露节点 IP,网站类应用可使用 CDN 服务器防护,感谢大家的支持与理解];
|
|
|
|
// Don't edit this line
|
|
export { maintenances, pageConfig, workerConfig }
|