Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 705 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 705 Bytes

Build Status

Coverage Status

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"
  }
]