refactor: changed how plugin kwargs are sent and other minor changes
This commit is contained in:
parent
d1e892dd98
commit
47c9d48735
3 changed files with 11 additions and 7 deletions
|
|
@ -94,8 +94,10 @@ func init() {
|
|||
serveCmd.Flags().String("host", "localhost:5050", "Set the configurator server host (can be set with MAKESHIFT_HOST)")
|
||||
serveCmd.Flags().String("root", "./", "Set the root path to serve files (can be set with MAKESHIFT_ROOT)")
|
||||
serveCmd.Flags().IntP("timeout", "t", 60, "Set the timeout in seconds for requests (can be set with MAKESHIFT_TIMEOUT)")
|
||||
serveCmd.Flags().String("cacert", "", "Set the CA certificate path to load (can be set with MAKESHIFT_CACERT)")
|
||||
serveCmd.Flags().String("keyfile", "", "Set the CA key file to use (can be set with MAKESHIFT_KEYFILE)")
|
||||
serveCmd.Flags().String("cacert", "", "Set the CA certificate path to load (can be set with MAKESHIFT_CACERT, only used if set with '--keyfile' flag)")
|
||||
serveCmd.Flags().String("keyfile", "", "Set the CA key file to use (can be set with MAKESHIFT_KEYFILE, only used if set with '--cacert' flag)")
|
||||
serveCmd.Flags().String("keyurl", "", "Set the JWKS remote host for JWT verification")
|
||||
serveCmd.Flags().StringSlice("protect-routes", []string{}, "Set the routes to require authentication (uses default routes if not set with '--keyurl' flag)")
|
||||
|
||||
serveCmd.MarkFlagsRequiredTogether("cacert", "keyfile")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue