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