Skip to content
Adnan Hajdarević edited this page Oct 4, 2015 · 11 revisions

Webhook parameters

Usage of ./webhook:
  -hooks="hooks.json": path to the json file containing defined hooks the webhook should serve
  -hotreload=false: watch hooks file for changes and reload them automatically
  -ip="": ip the webhook should serve hooks on
  -port=9000: port the webhook should serve hooks on
  -urlprefix="hooks": url prefix to use for served hooks (protocol://yourserver:port/PREFIX/:hook-id)
  -verbose=false: show verbose output
  -nopanic=false: do not panic if hooks cannot be loaded when webhook is not running in verbose mode
  -secure=false: use HTTPS instead of HTTP
  -cert="cert.pem": path to the HTTPS certificate pem file
  -key="key.pem": path to the HTTPS certificate private key pem file

Use any of the above specified flags to override their default behavior.

Live reloading hooks

If you are running an OS that supports USR1 signal, you can use it to trigger hooks reload from hooks file, without restarting the webhook instance.

kill -USR1 webhookpid

This is very important and helpful resources for planning

Clone this wiki locally