Skip to content

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-checklist

Response:

json
{
  "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 }
  ]
}
KeyDone when
storageThe last storage check found no error. Without a recent one, the check runs first; its result is kept for ten minutes.
ssh_keyThe panel has its SSH key (Nodes).
workerAn 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.
deliveryThe CDN token secret is set.
cloudflareA Cloudflare API token is stored.
cdn_domainThe primary CDN domain can be served (over HTTPS, it has its certificate).
proxyA proxy node is active, not draining, deployed and passing its health check.
templateOne 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-check

Response:

json
{
  "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." }
  ]
}
CheckWhat it asks
bucketThe bucket exists and answers. When it does not, the other checks are skipped.
writeThese credentials can write to it: the upload URLs are signed with them. A small object is written and removed again, outside the upload folder.
corsA 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.

Released under the MIT License.