Add subnet proxy config (#14225)

Will store the HTTP(S) proxy URL to use for connecting to SUBNET.
This commit is contained in:
Shireesh Anjal
2022-02-01 23:22:38 +05:30
committed by GitHub
parent 77b780b8ca
commit 3882da6ac5
5 changed files with 30 additions and 0 deletions
+3
View File
@@ -213,6 +213,9 @@ func minioConfigToConsoleFeatures() {
if globalSubnetConfig.APIKey != "" {
os.Setenv("CONSOLE_SUBNET_API_KEY", globalSubnetConfig.APIKey)
}
if globalSubnetConfig.Proxy != "" {
os.Setenv("CONSOLE_SUBNET_PROXY", globalSubnetConfig.Proxy)
}
}
func initConsoleServer() (*restapi.Server, error) {