Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve S3 output thumbnails via CloudFront #37

Open
wants to merge 1 commit into
base: pThumb-dev
Choose a base branch
from

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