Skip to content

Commit

Permalink
Update bucket_connection.go
Browse files Browse the repository at this point in the history
  • Loading branch information
AlfieJones committed Mar 3, 2024
1 parent 3abd94e commit f032e2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/backend/platform/storage/bucket_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ func getS3Clients() (*s3.Client, *s3.Client, error) {
return nil, nil, err
}

s3ExternalClient := s3.NewFromConfig(sdkExternalConfig)
s3ExternalClient := s3.NewFromConfig(sdkExternalConfig, func(o *s3.Options) {
if os.Getenv("PIXELEYE_HOSTING") != "true" {
o.UsePathStyle = true
}
})

return s3Client, s3ExternalClient, nil
}
Expand Down

0 comments on commit f032e2b

Please sign in to comment.