25
Allow replacement of S3 Bucket URL with a CDN URL
Source: directus/directus#20791 · opened by @Andersang
Summary Some S3-compatible providers, such as Backblaze B2, allow for delivering of files through CDNs where the bucket URL can simply be replaced by the CDN URL. An additional environment variable to allow replacing the bucket URL with a CDN URL would be a great addition. This is briefly mentioned in #7612 , where it was mentioned that a delivering content directly from cloud object storage is difficult to implement, but a URL replacement in this case might be simpler. Basic Example Some S3-compatible providers allow for delivering of files through CDNs. One such example is Backblaze B2, which has [articles]( on how that can be done. If a B2 Bucket is successfully connected to Cloudflare, a file at (CDN URL) will be mapped to (B2 Bucket URL). This remapping seems to be a simple replacement of only the front part of the full URL. It might be possible to allow for an additional environment variable STORAGE_*_CDN to route file retrieval from the CDN instead. If this environmen…
No pledges yet. Be the first to back this.
Comments
Similar requests
Store asset transformations for reference when serving assets from outside of the studio app
3 votes · 0 comments
Live Preview option to automatically add a time-limited token to the query (incl. ENV vars)
18 votes · 0 comments
Add Full Asset URL to API Response
5 votes · 0 comments
Direct Asset URL to Storage (S3, Azure, Cloudinary, etc)
70 votes · 0 comments
Insight - Line Diagram - Step Size
4 votes · 0 comments
No comments yet.