I have enabled CDN for DO Space. And my endpoint URLs are:
Origin: https://*********.blr1.digitaloceanspaces.com
CDN: https://********.blr1.cdn.digitaloceanspaces.com
_APP_STORAGE_DEVICE=dospaces _APP_STORAGE_DO_SPACES_ACCESS_KEY=**************************** _APP_STORAGE_DO_SPACES_SECRET=***************************************** _APP_STORAGE_DO_SPACES_REGION=blr1 _APP_STORAGE_DO_SPACES_BUCKET=*****
Added required env vars to connect appwrite with DO space. All works fine.
My doubt is whether I have to use blr1.cdn for _APP_STORAGE_DO_SPACES_REGION to channel through CDN service..?
Kindly assist.
I don't think you'll be able to use the CDN with appwrite
It will be useless to set CDN in this case, because even if you could set it, it will need to go through your Appwrite instance instead of directly from DO. This is made to handle permissions and to cache such images in order to save bandwidth
If you need CDN with appwrite due to some reasons, you can use Cloudflare
Since it acts as a reverse proxy, it works and will cache things if you setup it
Thank you for explaining...understood...I will look into cloudfare👍
[SOLVED] DO Space settings to use CDN
Recommended threads
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...