Skip to content

Lightweight app to handle multiple webhooks with simple JSON configuration

Notifications You must be signed in to change notification settings

dbd/go_webhook_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go Webhooks Server

Designed to be a lightweight and easily configurable and serve multiple Webhooks

The config.json contains the following

  • Secretkey: random string to obfuscate URL.
  • Port: Used to define port.
  • hooks: List of hooks
  • Name: Arbitrary name for the hook
  • URL: Last part of URL
  • Command: Command to be run

The url is generated in the follow format /${Secretkey}/${hook.URL}

config.json

{
  "Secretkey": "as0fn912g9ag9-9bq2g9afw0",
  "hooks": [
    {
      "Name": "docker",
      "Url": "docker-v1",
      "Command": "docker run -p80:8080"
    },
    {
      "Name": "restart",
      "Url": "restart-v1",
      "Command": "systemctl reboot -i"
    }
  ]
}

About

Lightweight app to handle multiple webhooks with simple JSON configuration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published