Back

[SOLVED] DO Space settings to use CDN

  • 0
  • Self Hosted
Alan Gautham
4 Oct, 2023, 05:35

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.

TL;DR
The user was trying to enable CDN for their DO Space settings. Another user suggested using Cloudflare as a reverse proxy for caching. However, it was mentioned that using CDN with Appwrite may not be necessary as it would route through the Appwrite instance rather than directly from DO. The user then provided their DO Space endpoint URLs and asked if they needed to use the CDN service for the specific region.
Drake
4 Oct, 2023, 05:38

I don't think you'll be able to use the CDN with appwrite

D5
4 Oct, 2023, 05:45

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

D5
4 Oct, 2023, 05:46

If you need CDN with appwrite due to some reasons, you can use Cloudflare

D5
4 Oct, 2023, 05:47

Since it acts as a reverse proxy, it works and will cache things if you setup it

Alan Gautham
4 Oct, 2023, 06:16

Thank you for explaining...understood...I will look into cloudfare👍

Alan Gautham
4 Oct, 2023, 06:16

[SOLVED] DO Space settings to use CDN

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more