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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...