
I've got Storage setup with DO Spaces, and I was wondering what the best approach would be for serving images via the DO CDN instead of via the SDK? I'm not sure if it's already being served from the CDN or not but I'm serving A LOT of images so just want to make sure that I'm utilising the CDN where possible.
I'm self-hosting and using the JS SDK

Serve files via CDN instead of Storage?

If the images are publicly available I would just use Cloudflare and cache them there

By default all images goes through your appwrite instance so the DigitalOcean CDN is useless

An alternative is basically serving the URL with a function manually and interacting with DO storage API directly. The main concern here will be security

I had a feeling that would be the case, just wasn't sure if there was anything I had missed within Appwrite itself. The images are all publicly available so I'll probably be fine with just serving up the CDN URL I think. Most of the site is images so it's a lot of data to be sending through Appwrite

Thank you!

Edit on this: Cloudflare's reverse proxy CDN doesn't allow that (it violates their TOS since it will be serving a huge amount of non web content), for those who want this solution, will need to use their images product or just using the DO URL as suggested too

[SOLVED] Serve files via CDN instead of Storage?
Recommended threads
- Adjusting Node Heap limit on Appwrite Si...
I am running into a build issue with Appwrite Sites. I'm trying to build and deploy one of my Nuxt applications, and I am getting a failed deploy every time. Th...
- Issue: Incorrect input type for cron sch...
Description: The input field for setting the function schedule is of type email, which prevents entering a valid cron expression. Error Message: Please include...
- self host cant create relationship attri...
there is problem to self host i have upgraded to 1.6.2 to 1.7.2 but thin document i cant Create relationship attribute, and i dont get the collection name.
