Skip to content

Conversation

@lennartnederstigt
Copy link

We recently wanted to serve thumbnails via CloudFront for one of our websites, but it appears that pThumb currently only allows you to serve them directly from an S3 bucket. Therefore, we've added two new system settings which allow you to use CloudFront to serve the contents from the S3 output bucket.

In order to use it, you first need to create a new CloudFront web distribution for the S3 bucket in the AWS CloudFront console. Afterwards, you set the system setting pthumb.s3_output_cloudfront to true and point the pthumb.s3_output_cloudfront_url setting to the URL of the CloudFront distribution in the MODX manager.

It would be nice if this could be included in a new release of pThumb. Please let us know if you need any further info!

@sepiariver
Copy link

This looks like it could be helpful, thanks. I don't have CloudFront setup for testing this, so I'll have to do that first...

@sepiariver sepiariver self-assigned this Mar 8, 2016
@cjholowatyj
Copy link

Tested April 18, 2018. Works like a charm! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants