DigitalOcean Spaces CDN Integration

digitalocean spaces cdn

This guide will show you how to integrate DigitalOcean’s Spaces with KeyCDN. Spaces is an object storage service offered by DigitalOcean that allows you to store and deliver assets. This service is similar to our push zones or Amazon’s AWS S3 storage. If you have assets stored in DigitalOcean Spaces and want to accelerate them with a CDN, follow the instructions below:

  1. Login to your DigitalOcean account, navigate to “Spaces” from the menu and select “Create a Space”. create a space
  2. Give your space a name, choose a region, select “Public” (this step is important), choose your preferred pricing and click on “Create a Space”. space options
  3. Now you will be redirected to your Spaces files page where you can add/remove assets and more. This page will also provide you with your Spaces URL. Copy this and login to your KeyCDN dashboard.spaces url
  4. Create a Pull Zone within the KeyCDNs dashboard and use the URL provided in step 3 as the origin URL.keycdn spaces integration
  5. Once the zone has been fully deployed, you should now be able to access your spaces files using the CDN Zone URL (e.g. lorem-1c6b.kxcdn.com/welcome.html)

That’s it! Now you can start using your CDN Zone URL or create a Zonealias to begin delivering the assets you have stored in Spaces via KeyCDN for faster delivery around the world. For how to integrate KeyCDN with a DigitalOcean droplet, check out our other DigitalOcean CDN integration guide.