remex/example_config.json

60 lines
1,013 B
JSON

{
"server": {
"listen": "0.0.0.0",
"port": 3000
},
"log": {
"level": "debug",
"timestamp": "DD.MM.YYYY HH:mm:ss:SS"
},
"api": [
{
"url": "/watch",
"method": "get",
"command": "watch",
"args": [
"-n",
"3",
"ls"
],
"options": {
"detach": true,
"unique": "restart",
"timeout": 10000
}
},
{
"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"
]
}
]
}