Digital Ocean Spaces To Use cdn

Am able to upload images and videos to Digital Ocean but I want to use the cdn endpoint to serve the assets. I’ve tried to use the cdn as the endpoint in the configuration but that doesn’t upload the images.

Any actions return error 403 for already uploaded assets.

Anyone who’s managed to use cdn to as the link returned to Strapi? Any help is appreciated

I’m trying to do the same, couldn’t find any resources on this. I found that when using AWS s3, the cdn endpoint is specified as the ‘baseURL’. but for s3 compatible services such as digital ocean spaces, we have to use ‘endpoint’ under the providerOptions, when the cdn URL is used as the endpoint strapi returns error code 500 for all media related actions.