Backend options
Auth tokens, request timeouts, environment variables, and running a backend you host yourself.
Everything on this page is optional. A backend works with just spec, baseUrl and method. See
Add a backend.
Authentication
Add an auth block and the job runner sends Authorization: Bearer <token> on every request to
that backend.
The token is a literal, an ${ENV_VAR} reference, or a { vault: KEY } lookup resolved at deploy
time. See Environment variables. Validate it on your side:
type: token is the only auth type today.
Timeouts
The job runner allows 10 seconds per HTTP request by default. Long-running work (LLM calls, video encoding, large imports) needs a higher ceiling.
With timeoutOverridable: true, the client can shorten or extend an individual call:
When it’s false (the default) the timeout option is ignored and the deploy-time value always
wins.
A timeout counts as a failed attempt: the row’s errors array grows and the job retries according
to max_retries and retry_strategy.
Environment variables
env feeds variables into the backend’s container. It takes a file path, an inline map, vault, or
a per-environment map of any of those.
Full syntax, layering rules and the auto-injected variables are on Environment variables.
Deploy settings
deploy controls how Sp00ky Cloud builds and runs the backend.
| Field | Purpose |
|---|---|
dockerfile | Build context for the image. |
port | Port your service listens on inside the container. |
timeout | Per-request timeout in seconds (default 10). |
timeoutOverridable | Let the client override timeout per call. |
Hosting it yourself
Set hosting: external and Sp00ky won’t build or deploy the service. It only calls the baseUrl
you give it. Useful for a backend that already lives somewhere, or one that has to run inside your
own network.
Limiting where an app runs
scope keeps an app out of an environment where it doesn’t belong.
| Value | Effect |
|---|---|
all | Default. Runs locally and in the cloud. |
devOnly | Only under spky dev. Mail catchers, fake payment providers, seed jobs. |
cloudOnly | Only in deployed environments. |