Skip to content

Option for custom CDN endpoint when using S3 file store #300

Closed

Description

@gmemstr

When using an S3 file store, it looks like files are fetched using a presigned URL direct from the bucket. This is probably okay for most people, but it would be nice to be able to define a custom CDN endpoint, for example if you want to put Cloudfront in front of the bucket with a custom URL or proxying a Cloudflare R2 bucket. This would let us stick with a single domain and configure caching to avoid excessive requests to the bucket.

I'm not familiar with Elixir, but I'm willing to give it a shot at implementing.

Activity

  1. ku1ik commented on Aug 12, 2024

    @ku1ik
    Contributor

    I actually thought about this too. Seems like a good idea.

    We're serving files from a private bucket (i.e. objects themselves being private, requiring pre-signing). Do you have examples of how e.g. Cloudflare, Fastly, Cloudfront URLs would look like when compared to the original bucket URL? I assume simple domain substitution would only work for fully public objects, right?

  2. locked and limited conversation to collaborators on Feb 20, 2026
  3. converted this issue into a discussion #301 on Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions