58 lines
No EOL
977 B
JSON
58 lines
No EOL
977 B
JSON
{
|
|
"server": {
|
|
"listen": "0.0.0.0",
|
|
"port": 3000
|
|
},
|
|
"log": {
|
|
"level": "debug",
|
|
"timestamp": "DD.MM.YYYY HH:mm:ss:SS"
|
|
},
|
|
"api": [
|
|
{
|
|
"url": "/tail",
|
|
"method": "get",
|
|
"command": "tail",
|
|
"args": [
|
|
"-f",
|
|
"/tmp/example"
|
|
],
|
|
"options": {
|
|
"detach": true,
|
|
"unique": true
|
|
}
|
|
},
|
|
{
|
|
"url": "/uptime",
|
|
"method": "get",
|
|
"command": "uptime",
|
|
"args": []
|
|
},
|
|
{
|
|
"url": "/systemctl/example",
|
|
"method": "get",
|
|
"command": "systemctl",
|
|
"args": [
|
|
"is-active",
|
|
"example"
|
|
]
|
|
},
|
|
{
|
|
"url": "/systemctl/example/start",
|
|
"method": "post",
|
|
"command": "systemctl",
|
|
"args": [
|
|
"start",
|
|
"example"
|
|
]
|
|
},
|
|
{
|
|
"url": "/systemctl/example/stop",
|
|
"method": "post",
|
|
"command": "systemctl",
|
|
"args": [
|
|
"stop",
|
|
"example"
|
|
]
|
|
}
|
|
]
|
|
} |