log: add more info about BROWSER_URL (#16678)

This commit is contained in:
jiuker 2023-02-22 22:24:05 +08:00 committed by GitHub
parent 5c98223c89
commit 83fe1a2732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -639,7 +639,7 @@ func handleCommonEnvVars() {
if !((u.Scheme == "http" || u.Scheme == "https") && if !((u.Scheme == "http" || u.Scheme == "https") &&
u.Opaque == "" && u.Opaque == "" &&
!u.ForceQuery && u.RawQuery == "" && u.Fragment == "") { !u.ForceQuery && u.RawQuery == "" && u.Fragment == "") {
err := fmt.Errorf("URL contains unexpected resources, expected URL to be of http(s)://minio.example.com format: %v", u) err := fmt.Errorf("URL contains unexpected resources, expected URL to be one of http(s)://console.example.com or as a subpath via API endpoint http(s)://minio.example.com/minio format: %v", u)
logger.Fatal(err, "Invalid MINIO_BROWSER_REDIRECT_URL value is environment variable") logger.Fatal(err, "Invalid MINIO_BROWSER_REDIRECT_URL value is environment variable")
} }
globalBrowserRedirectURL = u globalBrowserRedirectURL = u