Explorar o código

Specify region for s3 (#8251)

rogerswingle %!s(int64=8) %!d(string=hai) anos
pai
achega
02455753b5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pkg/components/imguploader/s3uploader.go

+ 1 - 1
pkg/components/imguploader/s3uploader.go

@@ -78,5 +78,5 @@ func (u *S3Uploader) Upload(imageDiskPath string) (string, error) {
 		return "", err
 	}
 
-	return "https://" + u.bucket + ".s3.amazonaws.com/" + key, nil
+	return "https://" + u.bucket + ".s3-" + u.region + ".amazonaws.com/" + key, nil
 }