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

CloudFront Support? #32

Open
StephenPAdams opened this issue Mar 15, 2019 · 3 comments
Open

CloudFront Support? #32

StephenPAdams opened this issue Mar 15, 2019 · 3 comments

Comments

@StephenPAdams
Copy link

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

  • Media section and media pickers pull content from the S3 bucket
  • When media is posted to the front end, it should use the CDN instead of the S3 URL

Does this work out of box? Any examples?

@PhilA1
Copy link
Contributor

PhilA1 commented Mar 15, 2019

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
Copy link
Author

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
Copy link
Contributor

PhilA1 commented Mar 15, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants