Commit b37013e5 authored by Rafael's avatar Rafael

feat: env var defining AWS S3 region

parent 3ffbb917
Pipeline #20393502 passed with stage
in 1 minute and 55 seconds
......@@ -501,7 +501,7 @@ func getThumbnail(db *sql.DB, mediaURL, photoURL, thumbnailURL string) string {
defer file.Close()
conf := aws.Config{Region: aws.String("us-west-2")}
conf := aws.Config{Region: aws.String(os.Getenv("AWS_S3_REGION"))}
sess := session.New(&conf)
svc := s3manager.NewUploader(sess)
contentType := "image/png"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment