generated from lyc8503/UptimeFlare
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
const pageConfig = { | ||
// Title for your status page | ||
title: "lyc8503's Status Page", | ||
title: "DIYgod's Status Page", | ||
// Links shown at the header of your status page, could set `highlight` to `true` | ||
links: [ | ||
{ link: 'https://github.com/lyc8503', label: 'GitHub' }, | ||
{ link: 'https://blog.lyc8503.net/', label: 'Blog' }, | ||
{ link: 'mailto:[email protected]', label: 'Email Me', highlight: true }, | ||
{ link: 'https://github.com/DIYgod', label: 'GitHub' }, | ||
{ link: 'https://diygod.cc/', label: 'Blog' }, | ||
], | ||
} | ||
|
||
|
@@ -19,33 +18,13 @@ const workerConfig = { | |
// Example HTTP Monitor | ||
{ | ||
// `id` should be unique, history will be kept if the `id` remains constant | ||
id: 'foo_monitor', | ||
id: 'xLog', | ||
// `name` is used at status page and callback message | ||
name: 'My API Monitor', | ||
name: 'Public - xLog', | ||
// `method` should be a valid HTTP Method | ||
method: 'POST', | ||
method: 'GET', | ||
// `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] `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, | ||
// [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 check will run in your specified region, | ||
// refer to docs https://github.com/lyc8503/UptimeFlare/wiki/Geo-specific-checks-setup before setting this value | ||
checkLocationWorkerRoute: 'https://xxx.example.com', | ||
target: 'https://xlog.app', | ||
}, | ||
// Example TCP Monitor | ||
{ | ||
|