Skip to content

maxisme/webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Create a config.json file in the format:

{
  "/url/path": {
    "cmd": "echo 'command to be run with arg1 - %s & arg2 - %s'",
    "args": [
      "arg1", "arg2"
    ],
    "token": "*20 char min token*"
  }
}

You will then be able to have the cmd ran on the host via a http request:

$ curl http://127.0.0.1:8080/url/path -d 'token=*20 char min token*' -d 'arg1=foo' -d 'arg2=foo'
'command to be run with arg1 - foo & arg2 - bar'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors