Add HTTP methods cli parameter

Allows to globally restrict HTTP methods.

Fixes #248
This commit is contained in:
Cameron Moore 2019-12-26 11:29:33 -06:00
parent 3414f34025
commit c38778ba62
3 changed files with 34 additions and 12 deletions

View file

@ -13,6 +13,8 @@ Usage of webhook:
path to the json file containing defined hooks the webhook should serve, use multiple times to load from different files
-hotreload
watch hooks file for changes and reload them automatically
-http-methods string
globally restrict allowed HTTP methods; separate methods with comma
-ip string
ip the webhook should serve hooks on (default "0.0.0.0")
-key string