wip: worker & pages
This commit is contained in:
1 parent
c67ea1bd65
commit
cdd43685f2
18 files changed
+4118
-118
No files matched your search
@@ -0,0 +1,46 @@
|
||||
|
||||
|
||||
const config = {
|
||||
dateLocale: "zh-CN",
|
||||
timezone: "Asia/Shanghai",
|
||||
page: {
|
||||
title: "lyc8503's Status Page"
|
||||
},
|
||||
callback: async (statusChangeMsg: string) => {
|
||||
await fetch('https://server.lyc8503.site/wepush?key=wepushkey&msg=' + statusChangeMsg)
|
||||
},
|
||||
monitors: [
|
||||
{
|
||||
id: 'github',
|
||||
name: 'Github Monitor',
|
||||
method: 'GET',
|
||||
target: 'https://github.com',
|
||||
expectedCode: [200],
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
"User-Agent": "Uptimeflare"
|
||||
},
|
||||
body: undefined
|
||||
},
|
||||
{
|
||||
id: 'cloudflare',
|
||||
name: 'Cloudflare Monitor',
|
||||
method: 'GET',
|
||||
target: 'https://cloudflare.com',
|
||||
expectedCode: [200],
|
||||
timeout: 10,
|
||||
headers: {
|
||||
"User-Agent": "Uptimeflare"
|
||||
},
|
||||
body: undefined
|
||||
},
|
||||
{
|
||||
id: 'broken-test',
|
||||
name: 'Ping 1.1.1.1',
|
||||
method: 'TCP_PING',
|
||||
target: '1.1.1.1:1234'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default config
|
||||
Reference in new issue
Block a user