Skip to content

Commit 6305484

Browse files
authored
STAC-22970: Environment variables for ca-cert-path and ca-cert-base64-data (#104)
* STAC-22970: Environment variables for ca-cert-path and ca-cert-base64-data * STAC-22970: fix variable name
1 parent d1179ca commit 6305484

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/config/viper.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ func Bind(cmd *cobra.Command, vp *viper.Viper) *ViperConfig {
2121
vp.BindEnv("api-path", "STS_CLI_API_PATH")
2222
vp.BindEnv("context", "STS_CLI_CONTEXT")
2323
vp.BindEnv("skip-ssl", "STS_SKIP_SSL")
24+
vp.BindEnv("ca-cert-path", "STS_CA_CERT_PATH")
25+
vp.BindEnv("ca-cert-base64-data", "STS_CA_CERT_BASE64_DATA")
2426

2527
// bind flags
2628
vp.BindPFlag("url", cmd.Flags().Lookup("url"))

0 commit comments

Comments
 (0)