Skip to content

DigitalOcean Spaces

DigitalOcean Spaces supports all four Sendcrate delivery modes, including per-object and per-folder Public links via object ACLs and optional Spaces CDN delivery.

In Sendcrate, go to Add bucket and choose DigitalOcean Spaces:

Field Example / Notes
Endpoint URL https://<region>.digitaloceanspaces.com (for example https://nyc3.digitaloceanspaces.com)
Bucket name Your Space name
Path-style addressing Off by default (space.region.digitaloceanspaces.com); enable only if your setup requires endpoint/space
Access key ID / Secret access key Spaces access key generated in DigitalOcean
Public base URL (optional) Spaces CDN URL, e.g. https://acme.nyc3.cdn.digitaloceanspaces.com
  1. In the DigitalOcean Control Panel, open API → Spaces Keys → Generate New Key.
  2. Scope the key to the Space(s) you want Sendcrate to access (Read/Write/Delete, or Read-only for view-only sharing).
  3. Copy the Access Key and Secret Key into Sendcrate.
  • Gated, Proxied, Direct, and Public links are all supported.
  • Public delivery toggles per-object ACLs directly on your Space. If you also enable the Spaces CDN and enter its URL in Public base URL, Sendcrate builds Public links on the CDN hostname while per-object ACLs still govern which objects are public.

In DigitalOcean → your Space → Settings → CORS Configurations, add a rule allowing your Sendcrate origins (https://app.sendcrate.io and https://send.sendcrate.io, or your self-hosted origins):

  • Allowed Methods: GET, PUT, HEAD
  • Allowed Headers: *
  • Access Control Max Age: 3000

Or apply the S3 CORS JSON via the AWS CLI pointing at your Spaces endpoint:

[
{
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET", "PUT", "HEAD"],
"AllowedOrigins": [
"https://app.sendcrate.io",
"https://send.sendcrate.io"
],
"ExposeHeaders": ["ETag", "Content-Length", "Content-Range"],
"MaxAgeSeconds": 3000
}
]

To expire abandoned staged uploads under .sendcrate/staging/ and abort incomplete multipart uploads after 1 day, apply a lifecycle configuration with the AWS CLI (or s3cmd):

Terminal window
aws s3api put-bucket-lifecycle-configuration \
--endpoint-url https://nyc3.digitaloceanspaces.com \
--bucket my-space \
--lifecycle-configuration '{
"Rules": [
{
"ID": "sendcrate-staging",
"Filter": { "Prefix": ".sendcrate/staging/" },
"Status": "Enabled",
"Expiration": { "Days": 1 },
"AbortIncompleteMultipartUpload": { "DaysAfterInitiation": 1 }
}
]
}'

DigitalOcean Spaces does not push bucket event notifications. Sendcrate lists objects on demand whenever you browse a folder.