Open the CDN zone → Origins tab in my.cubepath.com.

Origins are the backends the CDN pulls content from on a cache miss: your web server, an API, or an S3-compatible bucket. A zone needs at least one before it can serve anything.

Add an origin

Click Add Origin and fill in the fields below. Everything after Origin URL is under Advanced Settings.

FieldWhat it does
SourceExternal server for any web server or S3-compatible bucket you reach by URL. Object Storage bucket for a CubePath bucket of your organization: pick it from the list and access is set up for you (see Object Storage)
NameA label to recognize this backend
Origin URLThe full URL of your backend, such as https://origin.example.com. The protocol, host, port and any path are read from it
Host HeaderThe Host header sent upstream. It's filled in with the host of the Origin URL; change it only when your backend serves several sites by name (name-based virtual hosting) and expects a different one
WeightShare of traffic when several origins are active
PriorityWhich origin the edge uses first: lower numbers first
Backup OriginOnly used when the primary origins are unavailable
Health Check and Health Check PathPeriodically probe the origin so a dead backend is taken out of rotation
Verify SSLValidate the origin's certificate (HTTPS origins only). Turn it on unless the backend uses a self-signed certificate

Each origin in the list shows a live health status, and can be enabled or disabled without deleting it. Disabling is the clean way to stop sending traffic to a backend before maintenance.

Private S3 buckets (SigV4)

If your origin is an object store and the bucket is private, every unauthenticated fetch gets a 403. S3 Origin Authentication solves this: you give the CDN the bucket credentials once, and each cache miss is signed with AWS Signature Version 4 transparently. Visitors never see the credentials and the bucket stays private.

Your originDo you need this?
Your own web server (Nginx, Apache, custom API)No: plain HTTPS, no signing required
Public S3-compatible bucketNo: anyone can fetch with a plain GET
CubePath Object Storage bucketNo: choose Object Storage bucket as the Source and access is set up for you
Private S3-compatible bucketYes: without it every fetch gets 403

Supported providers

Any object store that speaks AWS SigV4 over an S3 API works:

ProviderEndpoint
AWS S3s3.<region>.amazonaws.com
Cloudflare R2<account_id>.r2.cloudflarestorage.com (or <account_id>.eu.r2.cloudflarestorage.com for the EU jurisdiction)
Wasabis3.<region>.wasabisys.com
Backblaze B2s3.<region>.backblazeb2.com
MinIO (self-hosted)Your own endpoint

Configure it

Set up the origin as usual, with Source set to External server. Origin URL is https://<your-endpoint>, with no path unless you want to hide the bucket name (see Path mapping below). Leave Host Header with the endpoint hostname the dashboard fills in; never set it to your CDN domain. Then expand Private bucket (S3 SigV4) and fill in:

FieldValue
Enable SigV4 signingToggle on
Access key IDThe S3-style access key
Secret access keyThe S3-style secret. Write-only: once saved it's never displayed again
RegionLeave blank for R2 (defaults to auto). For AWS / Wasabi / Backblaze use the bucket's region (us-east-1, eu-central-1…)
Services3 (the default, correct for every supported provider)

Save. The credentials propagate to every PoP within a few seconds.

Path mapping, the usual first mistake

S3 treats the first segment of the URL path as the bucket name. So a request for:

 
https://your-zone.cubecdn.io/videos/clip.mp4

is read by S3 as bucket videos, key clip.mp4. If your files actually live in a bucket called my-media, S3 looks for a bucket called videos, finds none, and you get a 403, 404 or InvalidBucketName.

Two ways to fix it:

  • Put the bucket name in your URLs. Use an Origin URL with no path and have visitors request https://your-zone.cubecdn.io/my-media/path/to/file.mp4. Simplest, but the bucket name is visible.
  • Hide it with a base path. Add the bucket name to the end of the Origin URL (https://<your-endpoint>/my-media); the dialog shows it as Base Path. Visitors then request https://your-zone.cubecdn.io/path/to/file.mp4 and the CDN adds /my-media to the path before forwarding. The bucket name never appears publicly.

Credential permissions

Give the credentials the minimum permission needed: Object Read is enough for delivery, which is the normal case. Avoid admin keys.

Scope them to only the bucket(s) this zone serves: on R2 use Specify bucket, on AWS write an IAM policy with Resource: "arn:aws:s3:::my-media/*". Don't hand over account-wide access.

Rotating credentials

Regenerate at the provider, then edit the origin, expand Private bucket (S3 SigV4), paste the new Access key ID and Secret access key, and save. Leaving the secret field blank keeps the current one, so only fill it when you're actually rotating.

New credentials propagate in about 30 seconds. Content already cached keeps being served until its TTL expires; only fresh fetches use the new keys.

Cloudflare R2 jurisdictions

R2 buckets live in either the default or the EU jurisdiction, and each has its own endpoint. Point the CDN at the wrong one and R2 returns 421 Misdirected Request even with perfectly valid credentials. Check the bucket's jurisdiction in the Cloudflare dashboard (R2 → bucket → Settings → Location) and match the endpoint.

Error reference

Status / CodeMeaningFix
403 AccessDeniedValid signature, but the credentials lack permission on this bucket/objectCheck the token's bucket scope and resource permissions
403 SignatureDoesNotMatchThe signature itself is wrongRe-enter the secret; verify the region matches the bucket
400 InvalidArgument: AuthorizationThe request reached S3 with no auth at allRe-save the origin; confirm the SigV4 toggle is on
404 NoSuchBucketThe first path segment matches no bucketSee Path mapping above
404 NoSuchKeyRight bucket, wrong object pathVerify the exact key; case matters
421 Misdirected RequestWrong R2 jurisdiction endpoint or account IDSee Cloudflare R2 jurisdictions
503 Service UnavailableOrigin unreachable from the edgeCheck the provider's status page and the endpoint URL

The XML body usually names the exact <Code>. An HTML error body instead means the failure happened in front of S3, typically the endpoint mismatch behind the 421 case.

Constraints

  • All S3-authenticated origins in one zone share the same credentials. The edge signs with one set of credentials per zone, not one per origin. For separate buckets with separate keys, use separate zones.
  • The secret is write-only. If you lose it, regenerate at the provider and re-enter.
  • GET and HEAD only. The CDN doesn't sign PUT/POST/DELETE: it's a delivery network, not an upload pipeline.