Features · Secrets & Config
API keys and settings stay out of your code.
Your app lists the names of the variables it needs. You set the values in the dashboard or with the CLI. They're stored encrypted and given to the app when it runs.
Why It Helps
No .env to Leak
There's no secrets file in the working tree, so there's none to commit by accident or paste into a chat window.
Safe to Hand to an Agent
Your agent writes the manifest and commits it. It contains variable names and nothing else, so nothing secret ends up in the repository.
Never Half-Configured
A missing required value stops the deploy before it starts and says which one. Your users never see a half-configured app.
Two Kinds of Variable
Your variables, and the platform's.
Everything the platform supplies carries a reserved prefix: the app's URL, the port to bind, the database connection string, and the addresses it needs for sign-in. Your own variables can't use that prefix, so there's never a question about where a value came from.
An app reads its own address from these, so it can move to a different domain without code changes.
The Full Variable List →STRIPE_SECRET_KEY · required · secretASTRODOCK_DATABASE_URL
ASTRODOCK_APP_URL · ASTRODOCK_PORTDeploy blocked — STRIPE_SECRET_KEY has no valueThe Reserved Set
What every app is given.
Present when the manifest asks for the matching resource. Your own variables may not use the reserved prefix, so the two can never be confused.
| Variable | When | What It Is |
|---|---|---|
ASTRODOCK_PORT | Always | The port your server must bind |
ASTRODOCK_APP_URL | Always | Your app's public address |
ASTRODOCK_DATABASE_URL | database ≠ none | Postgres connection string |
ASTRODOCK_STORAGE_* | storage ≠ none | Endpoint, bucket, keys |
ASTRODOCK_AUTHORIZE_URL | auth = platform | Where to send a browser to sign in |
Or start on Astrodock Cloud, or install it on a machine you control.