Setup Checklist
What the installation still needs before it can take an upload and play it back: the checklist the panel's home page shows. Both endpoints require admin privileges, and a project API key gets 403 on them even when the project's owner is an admin.
Get Setup Status
Every step, in the order an installation is set up, and whether it is done. Each one reads the same state the operation it unblocks checks, so a step never reads done while that operation would refuse. cloudflare is only listed on an installation whose edges terminate TLS.
GET /api/setup-checklistResponse:
{
"data": [
{ "key": "storage", "done": false, "detail": "Bucket \"videos\" did not answer: Access Denied" },
{ "key": "ssh_key", "done": true, "detail": null },
{ "key": "worker", "done": true, "detail": null },
{ "key": "delivery", "done": true, "detail": null },
{ "key": "cloudflare", "done": true, "detail": null },
{ "key": "cdn_domain", "done": false, "detail": "DNS challenge failed" },
{ "key": "proxy", "done": false, "detail": null },
{ "key": "template", "done": true, "detail": null }
]
}| Key | Done when |
|---|---|
storage | The last storage check found no error. Without a recent one, the check runs first; its result is kept for ten minutes. |
ssh_key | The panel has its SSH key (Nodes). |
worker | An active worker node exists, and the workers' chunk store has an address. The first worker created takes it with its own; a fleet whose store host was deleted has none until it is set again, which detail says. |
delivery | The CDN token secret is set. |
cloudflare | A Cloudflare API token is stored. |
cdn_domain | The primary CDN domain can be served (over HTTPS, it has its certificate). |
proxy | A proxy node is active, not draining, deployed and passing its health check. |
template | One of the caller's projects has an enabled template. |
detail says more when a step can: the storage check's first error, or why the primary domain's certificate was refused. It is null otherwise.
Check Storage
Asks the bucket now, with the API's own credentials, what every upload needs from it, and keeps the answer for Get Setup Status.
POST /api/setup-checklist/storage-checkResponse:
{
"data": [
{ "key": "bucket", "label": "Bucket", "status": "ok", "output": "Bucket \"videos\" answers." },
{ "key": "write", "label": "Write access", "status": "ok", "output": "These credentials can write to the bucket." },
{ "key": "cors", "label": "CORS", "status": "error", "output": "No CORS rule lets https://video.example.com PUT to the bucket and read the ETag header back. Add one, or uploads from the panel fail." }
]
}| Check | What it asks |
|---|---|
bucket | The bucket exists and answers. When it does not, the other checks are skipped. |
write | These credentials can write to it: the upload URLs are signed with them. A small object is written and removed again, outside the upload folder. |
cors | A rule lets the panel's origin (APP_URL), or *, PUT to the bucket and exposes the ETag header, which a multipart upload completes with. |
status is ok, error or warning. A store that cannot report its CORS rules gets a warning, not an error: its uploads may work all the same, and a warning does not hold the storage step back. The address the browser uploads to (AWS_ENDPOINT) cannot be checked from the server: it must also be reachable from the browser.