Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,20 @@ func main() {
Action: ActionServe,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "bind, b",
Name: "bind",
Aliases: []string{"b"},
Value: ":8080",
Usage: "address to listen on",
},
&cli.StringFlag{
Name: "sslkey, k",
Name: "sslkey",
Aliases: []string{"k"},
Value: "<unset>",
Usage: "path to the SSL secret key",
},
&cli.StringFlag{
Name: "sslcrt, c",
Name: "sslcrt",
Aliases: []string{"c"},
Value: "<unset>",
Usage: "path to the SSL compound certificate",
},
Expand All @@ -73,7 +76,8 @@ func main() {
Usage: "print only tokens (not as basic-auth URLs)",
},
&cli.StringFlag{
Name: "url-base, U",
Name: "url-base",
Aliases: []string{"U"},
Value: "http://localhost:8080",
Usage: "base URL to generate for (not included in hmac)",
Sources: cli.EnvVars("HOOKBOT_URL_BASE"),
Expand All @@ -86,7 +90,8 @@ func main() {
Action: github.ActionRoute,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "monitor-url, u",
Name: "monitor-url",
Aliases: []string{"u"},
Usage: "URL to monitor",
},
&cli.StringFlag{
Expand All @@ -96,7 +101,8 @@ func main() {
Sources: cli.EnvVars("HOOKBOT_ORIGIN"),
},
&cli.StringSliceFlag{
Name: "header, H",
Name: "header",
Aliases: []string{"H"},
Usage: "headers to pass to the remote",
Sources: cli.EnvVars("HOOKBOT_HEADER"),
},
Expand Down
Loading