Set Console Redirect URL env variable (#19683)

This commit is contained in:
Cesar N
2024-05-06 19:47:59 -07:00
committed by GitHub
parent 1e83f15e2f
commit 39633a5581

View File

@@ -139,6 +139,9 @@ func minioConfigToConsoleFeatures() {
os.Setenv("CONSOLE_LOG_QUERY_AUTH_TOKEN", value)
}
}
if value := env.Get(config.EnvBrowserRedirectURL, ""); value != "" {
os.Setenv("CONSOLE_BROWSER_REDIRECT_URL", value)
}
// pass the console subpath configuration
if globalBrowserRedirectURL != nil {
subPath := path.Clean(pathJoin(strings.TrimSpace(globalBrowserRedirectURL.Path), SlashSeparator))