The config.json contains the following
Secretkey
: random string to obfuscate URL.Port
: Used to define port.hooks
: List of hooksName
: Arbitrary name for the hookURL
: Last part of URLCommand
: Command to be run
The url is generated in the follow format /${Secretkey}/${hook.URL}
{
"Secretkey": "as0fn912g9ag9-9bq2g9afw0",
"hooks": [
{
"Name": "docker",
"Url": "docker-v1",
"Command": "docker run -p80:8080"
},
{
"Name": "restart",
"Url": "restart-v1",
"Command": "systemctl reboot -i"
}
]
}