web-3f9a2c1.apps.example.com. The address never changes and never
points at a newer release, so you can open an older deploy next to the live one.
The deploy history shows a Visit button on each of them, and the live deploy
keeps answering on the app’s own URL.
How it works
For each kept deploy the control plane runs a retained copy of that deploy’s pinned image with its recorded config. A retained copy has no volumes, host ports, hooks or automatic rollback, and it sleeps afterAPP_DEPLOY_URL_IDLE_MINUTES without traffic (default 5), then wakes on the
first visit, so old deploys do not run idle.
Only a person opening the address in a browser wakes a sleeping copy. Everything
else gets a plain 503 and the copy stays asleep, because a new hostname becomes
public as soon as its certificate is issued and bots find it within seconds. The
check needs no setting:
- When the request carries
Sec-Fetch-Mode, onlynavigate(a top-level browser visit) wakes the copy. - When the header is absent (Safari before 16.4, or a proxy that strips
Sec-Fetch-*), a request withAccept: text/htmlwakes it, on HTTP or HTTPS. - A user agent containing
bot,crawl,spider,slurp,scan,headless,curl,pythonorgo-httpnever wakes it. That covers crawlers, scanners,curl, Python and Go clients, and headless browsers such as HeadlessChrome, Playwright, Puppeteer and Lighthouse.
settings ingress --fallback-domains=false) and there is no base domain, no URLs are created, so
no certificate is requested for a copy. Copies that already exist are not
removed when you switch automatic hostnames off; they keep their hostname until
they age out of the retention window or APP_DEPLOY_URL_KEEP is set to 0.
Copies mode
The settingdeploy.url_copies decides whether a copy is reachable. A stored value
wins; APP_DEPLOY_URL_COPIES only seeds the default. Change it with
levelrail-cli settings deploy-url-copies set <mode>, through
PUT /api/v1/settings/deploy-url-copies, and it applies on the next sync pass.
Switching between
private and public updates existing copies in place.
Retention
A deploy only keeps a URL while its image can still be redeployed: it needs a
registry digest or a rollback pin. Rollback pins and image cleanup are not
changed by this feature.
A retained copy runs the old code with the app’s env, so jobs and webhooks of an
old deploy can fire while it is awake. It does not get the app’s volumes.
Retained copies are internal: they are left out of the app list, search and the dashboard, and the delete API refuses them with a 409. They are removed automatically when their deploy ages out.