---
id: "digitalocean-spaces-cdn"
type: "component"
kind: "cdn"
provider: "digitalocean"
category: "edge"
docs: "https://docs.digitalocean.com/products/spaces/how-to/enable-cdn/"
url: "https://localhost:3000/catalogue/components/digitalocean-spaces-cdn"
---

# Spaces CDN

Content delivery network placed in front of a Spaces bucket.

| | |
|---|---|
| Provider | [digitalocean](https://localhost:3000/catalogue?provider=digitalocean) |
| Kind | [CDN](https://localhost:3000/catalogue/kinds/cdn) |
| Category | Edge |
| Official docs | [https://docs.digitalocean.com/products/spaces/how-to/enable-cdn/](https://docs.digitalocean.com/products/spaces/how-to/enable-cdn/) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `caching` | boolean | — | no | true | **true** |
| `certificateSource` | enum | `lets-encrypt`, `custom` | no | — | inherited |
| `customSubdomain` | boolean | — | no | false | inherited |
| `edgeCompute` | boolean | — | no | false | **false** |
| `edgeTtlSeconds` | integer | — | no | 3600 | inherited |
| `managed` | boolean | — | no | true | **true** |
| `originShield` | boolean | — | no | false | **false** |
| `tls` | boolean | — | no | true | **true** |

Bold values are the ones this component pins.

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 29

- [Alibaba Cloud CDN](https://localhost:3000/catalogue/components/alibaba-cdn.md) `alibaba-cdn` — alibabacloud
- [Dynamic Route for CDN](https://localhost:3000/catalogue/components/alibaba-dcdn.md) `alibaba-dcdn` — alibabacloud
- [Edge Security Acceleration](https://localhost:3000/catalogue/components/alibaba-esa.md) `alibaba-esa` — alibabacloud
- [AWS Amplify Hosting](https://localhost:3000/catalogue/components/aws-amplify-hosting.md) `aws-amplify-hosting` — aws
- [Amazon CloudFront](https://localhost:3000/catalogue/components/cloudfront.md) `cloudfront` — aws
- [Azure Content Delivery Network](https://localhost:3000/catalogue/components/azure-cdn.md) `azure-cdn` — azure
- [Microsoft Connected Cache](https://localhost:3000/catalogue/components/azure-connected-cache.md) `azure-connected-cache` — azure
- [Azure Front Door](https://localhost:3000/catalogue/components/azure-front-door.md) `azure-front-door` — azure
- [Azure Static Web Apps](https://localhost:3000/catalogue/components/azure-static-web-apps.md) `azure-static-web-apps` — azure
- [Cloudflare CDN](https://localhost:3000/catalogue/components/cloudflare-cdn.md) `cloudflare-cdn` — cloudflare
- [Cloudflare for SaaS](https://localhost:3000/catalogue/components/cloudflare-for-saas.md) `cloudflare-for-saas` — cloudflare
- [Akamai](https://localhost:3000/catalogue/components/akamai.md) `akamai` — default
- [bunny.net CDN](https://localhost:3000/catalogue/components/bunny.md) `bunny` — default
- [Generic CDN](https://localhost:3000/catalogue/components/cdn.md) `cdn` — default
- [CDN77](https://localhost:3000/catalogue/components/cdn77.md) `cdn77` — default
- [Content delivery network](https://localhost:3000/catalogue/components/content-delivery-network.md) `content-delivery-network` — default
- [Dragonfly](https://localhost:3000/catalogue/components/dragonfly-d7y.md) `dragonfly-d7y` — default
- [Fastly](https://localhost:3000/catalogue/components/fastly.md) `fastly` — default
- [imgix](https://localhost:3000/catalogue/components/imgix.md) `imgix` — default
- [KeyCDN](https://localhost:3000/catalogue/components/keycdn.md) `keycdn` — default
- [Netlify](https://localhost:3000/catalogue/components/netlify.md) `netlify` — default
- [Apache Traffic Server](https://localhost:3000/catalogue/components/trafficserver.md) `trafficserver` — default
- [Vercel](https://localhost:3000/catalogue/components/vercel.md) `vercel` — default
- [Google Cloud CDN](https://localhost:3000/catalogue/components/google-cloud-cdn.md) `google-cloud-cdn` — gcp
- [Firebase Hosting](https://localhost:3000/catalogue/components/google-firebase-hosting.md) `google-firebase-hosting` — gcp
- [Media CDN](https://localhost:3000/catalogue/components/google-media-cdn.md) `google-media-cdn` — gcp
- [IBM Cloud Internet Services](https://localhost:3000/catalogue/components/ibm-internet-services.md) `ibm-internet-services` — ibm
- [OCI Media Streams](https://localhost:3000/catalogue/components/oci-media-streams.md) `oci-media-streams` — oci
- [Web Application Acceleration](https://localhost:3000/catalogue/components/oci-web-application-acceleration.md) `oci-web-application-acceleration` — oci

## Use it in a design

```yaml
nodes:
  - { id: "digitalocean-spaces-cdn", component: "digitalocean-spaces-cdn" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Spaces CDN: the content delivery network placed in front of a Spaces bucket. "How to Enable
# the Spaces CDN" - the CDN is not on by default and is enabled on the Space, the default edge
# cache time-to-live is one hour, and a custom subdomain can carry a free managed Let's Encrypt
# certificate when the domain's DNS is on DigitalOcean.
schemaVersion: "1"
type: "component"
id: "digitalocean-spaces-cdn"
kind: "cdn"
provider: "digitalocean"
docs: "https://docs.digitalocean.com/products/spaces/how-to/enable-cdn/"
defaults:
  managed: true
  caching: true
  tls: true
  edgeCompute: false
  originShield: false
properties:
  edgeTtlSeconds:
    type: "integer"
    default: 3600
  customSubdomain:
    type: "boolean"
    default: false
  certificateSource:
    type: "enum"
    values: ["lets-encrypt", "custom"]
```

Human page: https://localhost:3000/catalogue/components/digitalocean-spaces-cdn
