ElijahGlover / Umbraco-S3-Provider

Amazon Web Services S3 IFileSystem provider for Umbraco
46 stars 34 forks source link

CloudFront Support? #32

Open StephenPAdams opened 5 years ago

StephenPAdams commented 5 years ago

Hey gang! Curious if this file provider supports CloudFront (CDN)? Basically, it should work like the following:

Does this work out of box? Any examples?

PhilA1 commented 5 years ago

Not out the box. Umbraco need to use relative paths. What we did was create a simple helper method to use in our templates and will the relative path with the cloudfront one

StephenPAdams commented 5 years ago

Nice. So just use some sort of configuration outside of this plugin to define the CDN base and whether it’s enabled or not? What’s the helper method?

Thanks!

PhilA1 commented 5 years ago

Exactly. 1 web config setting and a couple of lines of code