thaiphan / magento2-s3

Use Amazon S3 as the file storage solution for your Magento 2 application
MIT License
142 stars 95 forks source link

How can i used cloudfront for s3 bucket? #71

Closed dineshmanne closed 5 years ago

dineshmanne commented 5 years ago

I want to know how can i use cloudfront for my s3 bucket? I created cloudfront url for my s3 bucket. Can i update this url in static files URL , Media URL under Configurations --> General --> Web ??

Please guide me on this.

thaiphan commented 5 years ago

Hey @dineshmanne

Yeah, you can change the static media URL to be your CloudFront URL. You also need to configure your CloudFront to use S3 as an original server. Also don't forget to make sure all media images are being routed through get.php (which should be configured by default by Magento).

Regards,

Thai