Skip to content

Commit 51e459b

Browse files
committed
Rename env vars for S3 auth
1 parent a593ca3 commit 51e459b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ func main() {
130130

131131
// For S3 access key and secret key, we first try to read the values from environment variables.
132132
// Only if these are not defined do we use the respective flags.
133-
var accessKeyFromEnvIfAvailable = os.Getenv("MINIO_ACCESS_KEY")
133+
var accessKeyFromEnvIfAvailable = os.Getenv("S3_ACCESS_KEY")
134134
if accessKeyFromEnvIfAvailable == "" {
135135
accessKeyFromEnvIfAvailable = accessKey
136136
}
137-
var secretKeyFromEnvIfAvailable = os.Getenv("MINIO_SECRET_KEY")
137+
var secretKeyFromEnvIfAvailable = os.Getenv("S3_SECRET_KEY")
138138
if secretKeyFromEnvIfAvailable == "" {
139139
secretKeyFromEnvIfAvailable = secretKey
140140
}

0 commit comments

Comments
 (0)