A distribution is the CDN endpoint your users hit. It maps a hostname to one or more origins, applies cache and access rules, and serves traffic from edge PoPs.Documentation Index
Fetch the complete documentation index at: https://docs.tenbyte.io/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A reachable origin (HTTPS hostname, IP, or S3-compatible bucket).
- DNS access if you plan to use a custom domain (you’ll add a CNAME).
- An API token if creating distributions from CI/CD.
Steps
Name the distribution
Use a clear, environment-prefixed name (
prod-web, staging-images). Names show up in audit logs and metrics.Pick a cache strategy
Static, VOD, livestream, or dynamic — sets sensible TTL defaults you can override later.
Domain type

| Option | When to use |
|---|---|
| System Generated | Quick test, internal tools, or when DNS isn’t ready. Tenbyte gives you a <id>.tenbytecdn.com host. |
| Custom | Production. Add cdn.yoursite.com and CNAME it to the system-generated host. |
Cache strategy

| Strategy | Default TTL profile | Use for |
|---|---|---|
| Static | Long TTL, full cache | Images, JS, CSS, fonts |
| VOD | Segmented cache, large object support | MP4, HLS / DASH on-demand |
| Livestream | Short TTL, frequent refresh | HLS / DASH live segments |
| Dynamic | Minimal cache | API responses, SSR pages |
Origin
The origin is the upstream the CDN pulls from on cache miss. Pick one of two types.Hostname origin

- Origin Label — internal name.
- Hostname / IP — must be reachable over HTTPS or HTTP.
S3-compatible origin

- Origin Label — internal name.
- Hostname — endpoint of the S3-compatible service (e.g.
s3.amazonaws.com,s3.us-east-1.amazonaws.com,nyc3.digitaloceanspaces.com). - Access Key ID / Secret Access Key — credentials with read access to the bucket.
- Bucket — bucket name.
- Region — bucket region.
Advanced settings

Host:. Set it explicitly when:
- Your origin uses virtual hosting (multiple sites on one IP).
- The origin’s TLS cert is issued for a specific hostname.
- A reverse proxy or load balancer routes by Host.
| Field | Example |
|---|---|
| Key | Host |
| Value | origin.yoursite.com |
Verify the distribution
x-cache should flip to HIT.
Create via API
Common pitfalls
| Symptom | Cause |
|---|---|
502 Bad Gateway from CDN | Origin unreachable, wrong port, or TLS cert mismatch. Check origin from outside your network. |
403 from S3 origin | Credentials missing s3:GetObject on the bucket / prefix. |
| Wrong content served | Custom Host header missing — virtual host routing on origin picks the default vhost. |
x-cache: MISS every request | Origin sends Cache-Control: no-store or private. Override via cache rules. |