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
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...