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
- I'm getting an error on the console "j?....
On my self hosted instance version 1.8.1 the console is giving me this error when trying to view the rows for a table I recently created. My application is read...
- local build `composer installer:dev` iss...
setup - dev container (default linux universal) WSL (test with gh codespace too) - php 8.5.7 - all extensions installed - `composer install` fine - `composer...
- Function global variables
when i create a top-level global variable in go or bun how will it behave? is the heap getting renewed on every execution or could i do some kind of temp. cachi...