update readme & config
This commit is contained in:
1 parent
4f18b3fd66
commit
76ffca561f
2 files changed
+19
-86
No files matched your search
+12
-77
@@ -1,3 +1,5 @@
|
||||
// Refer to https://github.com/lyc8503/UptimeFlare/wiki/Configuration for detailed information
|
||||
|
||||
const config = {
|
||||
dateLocale: 'zh-CN',
|
||||
timezone: 'Asia/Shanghai',
|
||||
@@ -10,100 +12,33 @@ const config = {
|
||||
],
|
||||
},
|
||||
callback: async (statusChangeMsg: string) => {
|
||||
await fetch('https://server.lyc8503.site/wepush?key=wepushkey&msg=' + statusChangeMsg)
|
||||
// Add your own callback here
|
||||
},
|
||||
monitors: [
|
||||
{
|
||||
id: 'github',
|
||||
name: 'Github Monitor',
|
||||
method: 'GET',
|
||||
target: 'https://github.com',
|
||||
expectedCode: [200],
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
'User-Agent': 'Uptimeflare',
|
||||
},
|
||||
body: undefined,
|
||||
target: 'https://github.com'
|
||||
},
|
||||
{
|
||||
id: 'cloudflare',
|
||||
name: 'Cloudflare Monitor',
|
||||
method: 'GET',
|
||||
target: 'https://cloudflare.com',
|
||||
expectedCode: [200],
|
||||
timeout: 10000,
|
||||
timeout: 5000,
|
||||
headers: {
|
||||
'User-Agent': 'Uptimeflare',
|
||||
},
|
||||
body: undefined,
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'blog',
|
||||
name: 'My Blog',
|
||||
method: 'GET',
|
||||
target: 'https://blog.lyc8503.site',
|
||||
timeout: 10000,
|
||||
},
|
||||
{
|
||||
id: 'pan',
|
||||
name: 'My Fileshare',
|
||||
method: 'GET',
|
||||
target: 'https://pan.lyc8503.site',
|
||||
timeout: 10000,
|
||||
},
|
||||
{
|
||||
id: 'server',
|
||||
name: 'My Aliyun Server',
|
||||
method: 'GET',
|
||||
target: 'https://server.lyc8503.site',
|
||||
timeout: 10000,
|
||||
},
|
||||
{
|
||||
id: 'homelab',
|
||||
name: 'HomeLab',
|
||||
method: 'GET',
|
||||
target: 'https://lyc8503.cn4.quickconnect.cn/webstation/hello.txt',
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
Cookie: 'type=tunnel;',
|
||||
},
|
||||
responseKeyword: 'Hello',
|
||||
},
|
||||
{
|
||||
id: 'homessh',
|
||||
name: 'HomeSSH',
|
||||
id: 'sshtest',
|
||||
name: 'SSH Server',
|
||||
method: 'TCP_PING',
|
||||
target: '20.24.87.148:22',
|
||||
timeout: 10000,
|
||||
},
|
||||
{
|
||||
id: 'broken-test',
|
||||
name: 'Ping 1.1.1.1',
|
||||
method: 'TCP_PING',
|
||||
target: '1.1.1.1:1234',
|
||||
},
|
||||
{
|
||||
id: '404test',
|
||||
name: '404-test',
|
||||
method: 'GET',
|
||||
target: 'https://www.baidu.com/404',
|
||||
},
|
||||
{
|
||||
id: '404test2',
|
||||
name: '404-test2',
|
||||
method: 'GET',
|
||||
target: 'https://www.baidu.com/404',
|
||||
expectedCodes: [404, 405],
|
||||
},
|
||||
{
|
||||
id: '404test3',
|
||||
name: '404-test3',
|
||||
method: 'GET',
|
||||
target: 'https://www.baidu.com/404',
|
||||
expectedCodes: [404],
|
||||
responseKeyword: 'Hello',
|
||||
},
|
||||
],
|
||||
target: '1.1.1.1:22',
|
||||
timeout: 5000
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default config
|
||||
Reference in new issue
Block a user