feature(cmd): implémenter UI API TLS skip verify #62
1 changed files with 16 additions and 0 deletions
16
config.go
16
config.go
|
@ -45,6 +45,9 @@ type Config struct {
|
|||
Key string `yaml:"key"`
|
||||
Port int `yaml:"port"`
|
||||
Protocol string `yaml:"protocol"`
|
||||
TLS struct {
|
||||
SkipVerify bool `yaml:"skipverify"`
|
||||
} `yaml:"tls"`
|
||||
} `yaml:"api"`
|
||||
Host string `yaml:"host"`
|
||||
Password string `yaml:"password"`
|
||||
|
@ -367,6 +370,19 @@ func init() {
|
|||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// server.ui.api.tls.skipverify
|
||||
uiCmd.PersistentFlags().Bool(
|
||||
"server-ui-api-tls-skipverify",
|
||||
false,
|
||||
"Skip API server TLS certificate verification",
|
||||
)
|
||||
if err := viper.BindPFlag(
|
||||
"server.ui.api.tls.skipverify",
|
||||
uiCmd.PersistentFlags().Lookup("server-ui-api-tls-skipverify"),
|
||||
); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// server.ui.host
|
||||
uiCmd.PersistentFlags().String(
|
||||
"server-ui-host",
|
||||
|
|
Loading…
Reference in a new issue