// 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 Nodes Status", // 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[] = []; // Don't edit this line export { maintenances, pageConfig, workerConfig }