Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pushd_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/google/uuid"
"github.com/imgproxy/imgproxy/v3/config"
)

var pushdPath = "/pushd"
Expand Down Expand Up @@ -116,7 +117,11 @@
func uploadToS3(data []byte, s3Key string, uploaded chan bool) {
md5Hash := createMD5Hash(data)
log.Infof("Uploading rendered image to: %s with md5 hash: %s", s3Key, md5Hash)
awsSession, err := session.NewSession()
awsSession, err := session.NewSession(&aws.Config{
Endpoint: aws.String(config.S3Endpoint),

Check failure on line 121 in pushd_plugin.go

View workflow job for this annotation

GitHub Actions / lint (1.20.x, 8.14)

File is not `goimports`-ed (goimports)

Check failure on line 121 in pushd_plugin.go

View workflow job for this annotation

GitHub Actions / lint (1.20.x, 8.14)

File is not `goimports`-ed (goimports)

Check failure on line 121 in pushd_plugin.go

View workflow job for this annotation

GitHub Actions / lint (1.20.x, 8.14)

File is not `goimports`-ed (goimports)
Region: aws.String(config.S3Region),
S3ForcePathStyle: aws.Bool(true),
})
if err != nil {
log.Error(err.Error())
return
Expand Down
Loading