mirror of
https://github.com/pgsty/minio.git
synced 2026-10-08 02:35:59 +03:00
gateway/gcs: Complete minio browser support for gcs. (#4552)
Fixes #4460
This commit is contained in:
@@ -290,6 +290,11 @@ func gatewayMain(ctx *cli.Context, backendType gatewayBackend) {
|
||||
// Handle common env vars.
|
||||
handleCommonEnvVars()
|
||||
|
||||
// Validate if we have access, secret set through environment.
|
||||
if !globalIsEnvCreds {
|
||||
fatalIf(fmt.Errorf("Access and Secret keys should be set through ENVs for backend [%s]", backendType), "")
|
||||
}
|
||||
|
||||
// Create certs path.
|
||||
fatalIf(createConfigDir(), "Unable to create configuration directories.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user