Update uptime.config.ts

pull/206/head
confmin 2025-08-01 16:05:24 +07:00 committed by GitHub
parent 7156fd83f2
commit efb1868f86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 52 deletions

View File

@ -2,12 +2,10 @@ import { MaintenanceConfig, PageConfig, WorkerConfig } from './types/config'
const pageConfig: PageConfig = { const pageConfig: PageConfig = {
// Title for your status page // Title for your status page
title: "lyc8503's Status Page", title: "Banhtrang 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: 'mailto:congminh45638@gmail.com', label: 'Email Me', highlight: true },
{ link: 'https://blog.lyc8503.net/', label: 'Blog' },
{ link: 'mailto:me@lyc8503.net', 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
@ -25,57 +23,16 @@ const workerConfig: WorkerConfig = {
// passwordProtection: 'username:password', // passwordProtection: 'username:password',
// Define all your monitors here // Define all your monitors here
monitors: [ monitors: [
// Example HTTP Monitor
{ {
// `id` should be unique, history will be kept if the `id` remains constant id: 'banhtrangvotri.xyz',
id: 'foo_monitor', name: 'Bánh tráng',
// `name` is used at status page and callback message method: 'GET',
name: 'My API Monitor', target: 'https://banhtrangvotri.xyz',
// `method` should be a valid HTTP Method tooltip: 'My production server monitor',
method: 'POST', statusPageLink: 'https://banhtrangvotri.xyz',
// `target` is a valid URL
target: 'https://example.com',
// [OPTIONAL] `tooltip` is ONLY used at status page to show a tooltip
tooltip: 'This is a tooltip for this monitor',
// [OPTIONAL] `statusPageLink` is ONLY used for clickable link at status page
statusPageLink: 'https://example.com',
// [OPTIONAL] `hideLatencyChart` will hide status page latency chart if set to true
hideLatencyChart: false,
// [OPTIONAL] `expectedCodes` is an array of acceptable HTTP response codes, if not specified, default to 2xx
expectedCodes: [200],
// [OPTIONAL] `timeout` in millisecond, if not specified, default to 10000
timeout: 10000, timeout: 10000,
// [OPTIONAL] headers to be sent
headers: {
'User-Agent': 'Uptimeflare',
Authorization: 'Bearer YOUR_TOKEN_HERE',
},
// [OPTIONAL] body to be sent
body: 'Hello, world!',
// [OPTIONAL] if specified, the response must contains the keyword to be considered as operational.
responseKeyword: 'success',
// [OPTIONAL] if specified, the response must NOT contains the keyword to be considered as operational.
responseForbiddenKeyword: 'bad gateway',
// [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
// currently supports `worker://` and `http(s)://` proxies
checkProxy: 'https://xxx.example.com OR worker://weur',
// [OPTIONAL] if true, the check will fallback to local if the specified proxy is down
checkProxyFallback: true,
}, },
// Example TCP Monitor ],
{
id: 'test_tcp_monitor',
name: 'Example TCP Monitor',
// `method` should be `TCP_PING` for tcp monitors
method: 'TCP_PING',
// `target` should be `host:port` for tcp monitors
target: '1.2.3.4:22',
tooltip: 'My production server SSH',
statusPageLink: 'https://example.com',
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