mirror of
https://github.com/Kizuren/statusPage.git
synced 2026-01-04 21:56:43 +01:00
Better config file.
This commit is contained in:
parent
c5186ba886
commit
c0db0a4e27
1 changed files with 14 additions and 9 deletions
23
config.js
23
config.js
|
|
@ -4,19 +4,24 @@ export default {
|
|||
responseTimeGood : 300, // In milliseconds, this and below will be green
|
||||
responseTimeWarning : 600, // In milliseconds, above this will be red
|
||||
timeout : 5000, // In milliseconds, requests will be aborted above this. (Do not )
|
||||
sites : [
|
||||
readableStatusJson : true, // Format status.json to be human readable
|
||||
logsMaxDatapoints : 200, // Maximum datapoints history to keep (per endpoint)
|
||||
sites : [
|
||||
{
|
||||
id : 'google',
|
||||
name : 'Google',
|
||||
endpoints : [
|
||||
id : 'google', // optional
|
||||
name : 'Google',
|
||||
endpoints : [
|
||||
{
|
||||
name : 'Homepage',
|
||||
url : 'https://www.google.com',
|
||||
request : {
|
||||
id : 'homepage', // optional
|
||||
name : 'Homepage',
|
||||
url : 'https://www.google.com',
|
||||
request : {
|
||||
method: 'GET',
|
||||
},
|
||||
mustFind : 'Feeling Lucky',
|
||||
mustNotFind : /not found/i,
|
||||
mustFind : 'Feeling Lucky', // String | Regex | Function | AsyncFunction
|
||||
mustNotFind : /not found/i,
|
||||
followRedirects : true,
|
||||
validStatus : [200],
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue