remex/example_config.json

60 lines
1,013 B
JSON
Raw Permalink Normal View History

2022-02-02 17:07:16 +01:00
{
"server": {
"listen": "0.0.0.0",
2022-03-15 01:36:47 +01:00
"port": 3000
2022-02-02 17:07:16 +01:00
},
"log": {
2022-03-15 01:36:47 +01:00
"level": "debug",
"timestamp": "DD.MM.YYYY HH:mm:ss:SS"
2022-02-02 17:07:16 +01:00
},
"api": [
{
"url": "/watch",
2022-03-18 13:26:51 +01:00
"method": "get",
"command": "watch",
2022-02-02 17:07:16 +01:00
"args": [
"-n",
"3",
"ls"
2022-02-02 17:07:16 +01:00
],
2022-03-18 13:56:19 +01:00
"options": {
"detach": true,
"unique": "restart",
"timeout": 10000
2022-03-18 13:56:19 +01:00
}
2022-03-17 16:51:36 +01:00
},
{
"url": "/uptime",
2022-03-18 13:26:51 +01:00
"method": "get",
2022-03-17 16:51:36 +01:00
"command": "uptime",
2022-03-18 13:56:19 +01:00
"args": []
},
{
2022-03-18 16:05:29 +01:00
"url": "/systemctl/example",
"method": "get",
"command": "systemctl",
"args": [
"is-active",
2022-03-18 16:05:29 +01:00
"example"
]
},
{
2022-03-18 16:05:29 +01:00
"url": "/systemctl/example/start",
"method": "post",
"command": "systemctl",
"args": [
"start",
2022-03-18 16:05:29 +01:00
"example"
]
},
{
2022-03-18 16:05:29 +01:00
"url": "/systemctl/example/stop",
"method": "post",
"command": "systemctl",
"args": [
"stop",
2022-03-18 16:05:29 +01:00
"example"
]
2022-02-02 17:07:16 +01:00
}
]
}