Skip to content

Commit

Permalink
Rename env vars for S3 auth
Browse files Browse the repository at this point in the history
  • Loading branch information
phlg committed Jun 15, 2023
1 parent a593ca3 commit 51e459b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ func main() {

// For S3 access key and secret key, we first try to read the values from environment variables.
// Only if these are not defined do we use the respective flags.
var accessKeyFromEnvIfAvailable = os.Getenv("MINIO_ACCESS_KEY")
var accessKeyFromEnvIfAvailable = os.Getenv("S3_ACCESS_KEY")
if accessKeyFromEnvIfAvailable == "" {
accessKeyFromEnvIfAvailable = accessKey
}
var secretKeyFromEnvIfAvailable = os.Getenv("MINIO_SECRET_KEY")
var secretKeyFromEnvIfAvailable = os.Getenv("S3_SECRET_KEY")
if secretKeyFromEnvIfAvailable == "" {
secretKeyFromEnvIfAvailable = secretKey
}
Expand Down

0 comments on commit 51e459b

Please sign in to comment.