repositorypackage
1.0.10
Repository: https://github.com/ssalvatori/rest2command.git
Documentation: pkg.go.dev
# README
rest2command
Http server written in golang to execute some command
Environment variables
LOG_LEVEL (debug|info|warn|error|fatal)
PORT (default 8891)
FILE_CONFIGURATION (default ./configuration.json)
Configuration file
[
{
"url": "/change/opt1",
"command": "/opt/opt1.sh",
"args": "args1 args2"
},
{
"url": "/change/opt2",
"command": "/opt/opt2.sh"
}
]