Question

how to configure the website on space with CDN

how to configure the website on space with CDN


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
June 10, 2022

Hi there,

In case that you want to configure your website so that it could use the DigitalOcean Spaces, you can use one of the following SDKs:

https://docs.digitalocean.com/products/spaces/resources/s3-sdk-examples/

Feel free to share more details regarding your website like what programing language and framework you are using and I will be happy to provide you with more resources and suggestions.

In case that you want to actually deploy a website on the DigitalOcean Spaces, this is not possible, but you can use the DigitalOcean App Platform instead for static websites:

https://www.digitalocean.com/community/tutorials/how-to-deploy-a-static-website-to-the-cloud-with-digitalocean-app-platform

Best,

Bobby

Bobby Iliev
Site Moderator
Site Moderator badge
June 9, 2022

Hi there,

What you could do is to either use the Spaces CDN endpoint or add your own subdomain name as described here:

https://docs.digitalocean.com/products/spaces/how-to/customize-cdn-endpoint/

Once you have your custom CDN endpoint you could use it as normal in your project.

Feel free to share more details about your website and the tech stack that you are using and I will be happy to advise you further.

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up