docs: add -socket option to documentation

This commit is contained in:
Ian Roberts 2024-10-19 17:51:35 +01:00
parent fdee28a812
commit 1f7f246f02

View file

@ -14,7 +14,7 @@ Usage of webhook:
-hotreload -hotreload
watch hooks file for changes and reload them automatically watch hooks file for changes and reload them automatically
-http-methods string -http-methods string
globally restrict allowed HTTP methods; separate methods with comma set default allowed HTTP methods (ie. "POST"); separate methods with comma
-ip string -ip string
ip the webhook should serve hooks on (default "0.0.0.0") ip the webhook should serve hooks on (default "0.0.0.0")
-key string -key string
@ -23,6 +23,8 @@ Usage of webhook:
list available TLS cipher suites list available TLS cipher suites
-logfile string -logfile string
send log output to a file; implicitly enables verbose logging send log output to a file; implicitly enables verbose logging
-max-multipart-mem int
maximum memory in bytes for parsing multipart form data before disk caching (default 1048576)
-nopanic -nopanic
do not panic if hooks cannot be loaded when webhook is not running in verbose mode do not panic if hooks cannot be loaded when webhook is not running in verbose mode
-pidfile string -pidfile string
@ -35,6 +37,8 @@ Usage of webhook:
set group ID after opening listening port; must be used with setuid set group ID after opening listening port; must be used with setuid
-setuid int -setuid int
set user ID after opening listening port; must be used with setgid set user ID after opening listening port; must be used with setgid
-socket string
path to a Unix socket (e.g. /tmp/webhook.sock) or Windows named pipe (e.g. \\.\pipe\webhook) to use instead of listening on an ip and port; if specified, the ip and port options are ignored
-template -template
parse hooks file as a Go template parse hooks file as a Go template
-tls-min-version string -tls-min-version string