Using Object Storage for Uploads (S3 & Clones)

@Raphael_Santos_Santo is there any downside or side effects to this approach of putting a fake or existing S3 URL here?

Also the admins get a message everyday in the inbox about the warning. I understand the need to show this warning in the dashboard but there should be a way to stop the daily message in the admins inbox about the warning

1 Like

For me I didn’t put anything fake. I put the actual URL to my s3 bucket at Wasabi and I have experienced no issues whatsoever.

3 Likes

@Falco I am using keycdn, do I need to create a push bucket or a pull bucket? If I create a push bucket, how will existing assets be pushed there?

What about this, when is this required?

Thanks for your help!

1 Like

Use the pull option.

Follow the guide on the OP, add it to your app.yml as described in there.

3 Likes

Thanks for the report Richie. I also have had AWS S3 image storage running for several years and came to this post via the console message. But the description at the top doesn’t say anything about the case that you already had S3 and just need a CDN.

For the record here is what I did:

  1. Went to AWS console, under Network and Content Delivery picked Cloudfront
  2. Clicked the Create distribution button
  3. Filled out the fairly obvious form, the only thing you really need to do on it is to pick your AWS S3 bucket where the images are from the drop-down menu.
  4. Waited a bit for the Cloudfront configuration to finish…
  5. A <gibberish>.cloudfront.net domain showed up in the “Domain Name” column of the Cloudfront Distributions list.
  6. I copied and pasted that domain into the s3 cdn url field in my site admin File settings.
  7. I did some tests:
    a. I made a new post with an image upload and indeed it was on cloudfront.
    b. I hit Rebuild HTML on some random existing image posts and saw they also rebuilt with cloudfront.net images.
  8. Since all looked good I went in and ran a rebake, which took several hours as I have around half a million posts now:
./launcher enter app
# rake posts:rebake
  1. All seems to be working fine. It put a ton of jobs in the sidekiq queue, one per post it looks like, which are going to take a few days to clear but it is chunking though them now.
6 Likes