mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
Set Console Redirect URL env variable (#19683)
This commit is contained in:
@@ -139,6 +139,9 @@ func minioConfigToConsoleFeatures() {
|
|||||||
os.Setenv("CONSOLE_LOG_QUERY_AUTH_TOKEN", value)
|
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
|
// pass the console subpath configuration
|
||||||
if globalBrowserRedirectURL != nil {
|
if globalBrowserRedirectURL != nil {
|
||||||
subPath := path.Clean(pathJoin(strings.TrimSpace(globalBrowserRedirectURL.Path), SlashSeparator))
|
subPath := path.Clean(pathJoin(strings.TrimSpace(globalBrowserRedirectURL.Path), SlashSeparator))
|
||||||
|
|||||||
Reference in New Issue
Block a user