laravel-storage icon indicating copy to clipboard operation
laravel-storage copied to clipboard

Added support for configuring AWS S3 CNAME.

Open paulofreitas opened this issue 9 years ago • 1 comments

So I have came up with another feature request! :)

This enables us to use a custom previously-configured CNAME (Amazon CloudFront CDN) to be used when building URLs, thus serving the files with a custom domain.

Hope you like it! :+1:

paulofreitas avatar Aug 28 '14 02:08 paulofreitas

Sorry for the delay, trying to test it out a bit. I like the idea as I could see myself using it in the future too.

The only thing I am curious about is if there is a way to make the getObjectUrl() call return the correct URL somehow by passing config options to S3Client. I looked around online and found a reference in the old PHP SDK and I believe it changed the 'base_url' config and set the 'bucket' to null and I sort of have it working, but the URL is wrong.

I made an issue on the AWS PHP SDK to ask if it is still possible.

dmyers avatar Sep 06 '14 00:09 dmyers