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

Override hostname used in read for CDN usage #34

Open
atiro opened this issue Jun 8, 2022 · 0 comments
Open

Override hostname used in read for CDN usage #34

atiro opened this issue Jun 8, 2022 · 0 comments

Comments

@atiro
Copy link

atiro commented Jun 8, 2022

We've been using the gem for some time to store/retrieve files in S3. We've added a CDN in front of S3 now and would like to be able to generate URLs that access the stored files using the CDN hostname (with the same file path).

This is working fine for 'url_for' with the hostname overrride, but the read method doesn't seem to take this into account and only accesses S3 directly. Is there any way to override that?

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

1 participant