Update
ci/woodpecker/push/woodpecker Pipeline was successful
Podrobnosti
ci/woodpecker/push/woodpecker Pipeline was successful
Podrobnosti
This commit is contained in:
rodič
e0cf07426e
revize
26c4109cb1
|
@ -76,6 +76,14 @@ export default async function build (src = SOURCE_FILE) {
|
|||
|
||||
const spec = yaml.load(fs.readFileSync(src))
|
||||
|
||||
for (const item of spec.servers) {
|
||||
const resp = await fetch(`https://${item.host}/sysinfo`)
|
||||
const json = await resp.json()
|
||||
|
||||
item.uptime = json.uptime
|
||||
item.system = json.system
|
||||
}
|
||||
|
||||
for (const item of spec.services) {
|
||||
|
||||
item.url = item.host ? `https://${item.host}` : item.url
|
||||
|
|
Načítá se…
Odkázat v novém úkolu