Update uptime.config.ts
Some checks failed
Deploy to Cloudflare / build-and-deploy (push) Has been cancelled

This commit is contained in:
TianLun Song 2025-04-25 15:45:58 +08:00 committed by GitHub
parent 4034efb2e5
commit c70e76f6b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,17 +1,17 @@
const pageConfig = { const pageConfig = {
// Title for your status page // Title for your status page
title: "lyc8503's Status Page", title: "frytea's Status Page",
// Links shown at the header of your status page, could set `highlight` to `true` // Links shown at the header of your status page, could set `highlight` to `true`
links: [ links: [
{ link: 'https://github.com/lyc8503', label: 'GitHub' }, { link: 'https://github.com/songtianlun', label: 'GitHub' },
{ link: 'https://blog.lyc8503.net/', label: 'Blog' }, { link: 'https://frytea.com/', label: 'Blog' },
{ link: 'mailto:me@lyc8503.net', label: 'Email Me', highlight: true }, { link: 'mailto:tianlun.song@foxmail.com', label: 'Email Me', highlight: true },
], ],
// [OPTIONAL] Group your monitors // [OPTIONAL] Group your monitors
// If not specified, all monitors will be shown in a single list // If not specified, all monitors will be shown in a single list
// If specified, monitors will be grouped and ordered, not-listed monitors will be invisble (but still monitored) // If specified, monitors will be grouped and ordered, not-listed monitors will be invisble (but still monitored)
group: { group: {
'🌐 Public (example group name)': ['foo_monitor', 'bar_monitor', 'more monitor ids...'], '🌐 Public': ['foo_monitor', 'bar_monitor', 'more monitor ids...'],
'🔐 Private': ['test_tcp_monitor'], '🔐 Private': ['test_tcp_monitor'],
}, },
} }
@ -23,64 +23,76 @@ const workerConfig = {
// passwordProtection: 'username:password', // passwordProtection: 'username:password',
// Define all your monitors here // Define all your monitors here
monitors: [ monitors: [
{
id: 'blog',
name: 'My BLog',
method: 'GET',
target: 'https://frytea.com'
},
{
id: 'today_ai_weather',
name: 'My BLog',
method: 'GET',
target: 'https://todayaiweather.com'
},
// Example HTTP Monitor // Example HTTP Monitor
{ // {
// `id` should be unique, history will be kept if the `id` remains constant // // `id` should be unique, history will be kept if the `id` remains constant
id: 'foo_monitor', // id: 'foo_monitor',
// `name` is used at status page and callback message // // `name` is used at status page and callback message
name: 'My API Monitor', // name: 'My API Monitor',
// `method` should be a valid HTTP Method // // `method` should be a valid HTTP Method
method: 'POST', // method: 'POST',
// `target` is a valid URL // // `target` is a valid URL
target: 'https://example.com', // target: 'https://example.com',
// [OPTIONAL] `tooltip` is ONLY used at status page to show a tooltip // // [OPTIONAL] `tooltip` is ONLY used at status page to show a tooltip
tooltip: 'This is a tooltip for this monitor', // tooltip: 'This is a tooltip for this monitor',
// [OPTIONAL] `statusPageLink` is ONLY used for clickable link at status page // // [OPTIONAL] `statusPageLink` is ONLY used for clickable link at status page
statusPageLink: 'https://example.com', // statusPageLink: 'https://example.com',
// [OPTIONAL] `hideLatencyChart` will hide status page latency chart if set to true // // [OPTIONAL] `hideLatencyChart` will hide status page latency chart if set to true
hideLatencyChart: false, // hideLatencyChart: false,
// [OPTIONAL] `expectedCodes` is an array of acceptable HTTP response codes, if not specified, default to 2xx // // [OPTIONAL] `expectedCodes` is an array of acceptable HTTP response codes, if not specified, default to 2xx
expectedCodes: [200], // expectedCodes: [200],
// [OPTIONAL] `timeout` in millisecond, if not specified, default to 10000 // // [OPTIONAL] `timeout` in millisecond, if not specified, default to 10000
timeout: 10000, // timeout: 10000,
// [OPTIONAL] headers to be sent // // [OPTIONAL] headers to be sent
headers: { // headers: {
'User-Agent': 'Uptimeflare', // 'User-Agent': 'Uptimeflare',
Authorization: 'Bearer YOUR_TOKEN_HERE', // Authorization: 'Bearer YOUR_TOKEN_HERE',
}, // },
// [OPTIONAL] body to be sent // // [OPTIONAL] body to be sent
body: 'Hello, world!', // body: 'Hello, world!',
// [OPTIONAL] if specified, the response must contains the keyword to be considered as operational. // // [OPTIONAL] if specified, the response must contains the keyword to be considered as operational.
responseKeyword: 'success', // responseKeyword: 'success',
// [OPTIONAL] if specified, the response must NOT contains the keyword to be considered as operational. // // [OPTIONAL] if specified, the response must NOT contains the keyword to be considered as operational.
responseForbiddenKeyword: 'bad gateway', // responseForbiddenKeyword: 'bad gateway',
// [OPTIONAL] if specified, will call the check proxy to check the monitor, mainly for geo-specific checks // // [OPTIONAL] if specified, will call the check proxy to check the monitor, mainly for geo-specific checks
// refer to docs https://github.com/lyc8503/UptimeFlare/wiki/Check-proxy-setup before setting this value // // refer to docs https://github.com/lyc8503/UptimeFlare/wiki/Check-proxy-setup before setting this value
// currently supports `worker://` and `http(s)://` proxies // // currently supports `worker://` and `http(s)://` proxies
checkProxy: 'https://xxx.example.com OR worker://weur', // checkProxy: 'https://xxx.example.com OR worker://weur',
// [OPTIONAL] if true, the check will fallback to local if the specified proxy is down // // [OPTIONAL] if true, the check will fallback to local if the specified proxy is down
checkProxyFallback: true, // checkProxyFallback: true,
}, // },
// Example TCP Monitor // // Example TCP Monitor
{ // {
id: 'test_tcp_monitor', // id: 'test_tcp_monitor',
name: 'Example TCP Monitor', // name: 'Example TCP Monitor',
// `method` should be `TCP_PING` for tcp monitors // // `method` should be `TCP_PING` for tcp monitors
method: 'TCP_PING', // method: 'TCP_PING',
// `target` should be `host:port` for tcp monitors // // `target` should be `host:port` for tcp monitors
target: '1.2.3.4:22', // target: '1.2.3.4:22',
tooltip: 'My production server SSH', // tooltip: 'My production server SSH',
statusPageLink: 'https://example.com', // statusPageLink: 'https://example.com',
timeout: 5000, // timeout: 5000,
}, // },
], ],
notification: { notification: {
// [Optional] apprise API server URL // [Optional] apprise API server URL
// if not specified, no notification will be sent // if not specified, no notification will be sent
appriseApiServer: 'https://apprise.example.com/notify', // appriseApiServer: 'https://apprise.example.com/notify',
// [Optional] recipient URL for apprise, refer to https://github.com/caronc/apprise // [Optional] recipient URL for apprise, refer to https://github.com/caronc/apprise
// if not specified, no notification will be sent // if not specified, no notification will be sent
recipientUrl: 'tgram://bottoken/ChatID', // recipientUrl: 'tgram://bottoken/ChatID',
// [Optional] timezone used in notification messages, default to "Etc/GMT" // [Optional] timezone used in notification messages, default to "Etc/GMT"
timeZone: 'Asia/Shanghai', timeZone: 'Asia/Shanghai',
// [Optional] grace period in minutes before sending a notification // [Optional] grace period in minutes before sending a notification