Configuration

This page lists every environment variable a self-hosted installation reads. Rollout reads them when a process starts, so a change takes effect on restart, with no rebuild. With Compose, edit .env.selfhost and run docker compose --env-file .env.selfhost up -d --no-build.

The Compose initializer writes the web role's Required variables, for the static key provider and your mail transport. To use gcp_kms, add ROLLOUT_SECRETS_PROVIDER and ROLLOUT_KMS_KEY_NAME, and remove the generated ROLLOUT_SECRETS_KEY. Elsewhere, Run without Compose lists the minimum.

A process runs one role, set by ROLLOUT_ROLE. Tables cover the web role unless a section says otherwise. compute, media and desktop_watchdog processes skip the web role's Required variables. media needs ROLLOUT_MEDIA_GATEWAY_KEY_FILE, and desktop_watchdog needs ROLLOUT_INSTALLATION_ID.

A malformed number or an unknown mode stops boot unless a row says otherwise. A flag that lists only its on values treats anything else as off, and one that lists only its off values treats anything else as on. A flag that lists both rejects anything else at boot. Variables used only for building, testing or CI aren't listed.

Endpoint and process

Variable Default What it does
ROLLOUT_ROLE web web runs the control plane. compute runs only the sandboxed compute server. media runs only the camera gateway and needs ROLLOUT_MEDIA_GATEWAY_KEY_FILE. desktop_watchdog only removes expired Docker desktops, as docker/compose.desktop.yaml runs it
PHX_SERVER unset Any value makes a release serve HTTP. Without it, bin/rollout start serves nothing, and that includes the App sandbox
PHX_HOST Required Public hostname. Every generated URL and the WebSocket origin check depend on it
PHX_SCHEME, PHX_URL_PORT https, 443 Public URL transport for email, OAuth, webhook and WebSocket URLs. With http, the port defaults to 80
PORT 4000 HTTP listen port, on all interfaces
SECRET_KEY_BASE Required Signs and encrypts cookies and tokens. Generate one with openssl rand -hex 64
ROLLOUT_WORKSPACE_ROOT Required Writable workflow workspace root, created at boot. The path built into the image isn't writable, so use one such as /tmp/rollout-workspaces
ROLLOUT_TRUSTED_PROXY_HOPS 0 Where the client address sits in X-Forwarded-For, counted from the right. 0 ignores the header. 1 is one reverse proxy, and the Compose initializer writes this. A value larger than the real chain lets clients pick their own address. A smaller one collapses every client into the proxy's. A header with too few entries falls back to the socket peer. See Client addresses behind a proxy
SANDBOX_HOST unset Hostname for the App sandbox, on a separate registrable domain. Unset, Apps don't render. The initializer accepts it. See Turn on Apps
SANDBOX_PORT 4010 Listen port for the App sandbox, with SANDBOX_HOST set. Compose publishes 4010, so keep the default there

Access and licensing

Variable Default What it does
ROLLOUT_LICENSE unset Signed Business license, verified offline against a key built into the release. Unset uses the Free plan. An invalid or expired license shows a warning in the app. See License
ROLLOUT_BOOTSTRAP_REGISTRATION off true or 1 opens registration and turns on the operator_admin flag at migration time if the database has no human users, and closes registration when the first person confirms their address. Set it on both the migrate step and the running server, because each does one half: on the migrate step alone, registration opens and never closes, so you have to disable alpha yourself. To keep it open after that, enable alpha. The Compose initializer sets it for both. Without it, registration starts closed
OPERATOR_EMAILS empty Comma-separated allowlist for the Operator console at /operator. Empty denies everyone. The operator_admin flag only controls whether the console is visible. The initializer accepts it
ROLLOUT_MCP_READ_ONLY false true, 1, yes or on exposes only registered read tools over MCP. false, 0, no or off exposes the full registry, whose write and admin tools still enforce OAuth scopes
ROLLOUT_MCP_RATE_LIMIT 100,60000 MCP requests allowed per user, and the window in milliseconds
ROLLOUT_TERMS_URL, ROLLOUT_PRIVACY_URL unset Your legal links in the sign-in footer. Unsafe URL schemes aren't rendered

Database

Variable Default What it does
DATABASE_URL Required ecto://USER:PASS@HOST/DATABASE
DATABASE_SSL TLS on false, disable or 0 turns TLS off, for an intentionally local PostgreSQL only
DATABASE_SSL_CA_CERT unset Path to a PEM CA bundle, validated at boot. Without it, TLS is encrypted but the server isn't verified, and boot prints a warning
DATABASE_SSL_IDENTITY hostname with a CA hostname verifies the chain and a DNS name, like PostgreSQL verify-full, for a shared or customer CA. per_instance_ca treats a CA unique to one managed database as the identity
DATABASE_SSL_SERVER_NAME DATABASE_URL host DNS name to verify in hostname mode when the connection uses a private IP
POOL_SIZE 10 Database connection pool size
ECTO_IPV6 off true or 1 connects over IPv6

Mail

Production authentication needs delivered email, and a release never falls back to a local mailbox.

Variable Default What it does
MAIL_ADAPTER smtp smtp or ses
MAIL_FROM_ADDRESS Required Installation sender. Your provider must permit it. Malformed values and header injection are rejected
MAIL_FROM_NAME Rollout Sender display name
SMTP_RELAY Required with SMTP Relay hostname, also used for TLS SNI and hostname verification
SMTP_PORT 587, or 465 with SSL 1 to 65535
SMTP_SSL false true or 1 uses implicit TLS with certificate verification. false or 0 leaves STARTTLS to SMTP_TLS
SMTP_TLS always, or never with SSL always is mandatory STARTTLS. never allows a trusted plaintext relay, or accompanies implicit TLS. Other values and contradictory settings are rejected
SMTP_USERNAME, SMTP_PASSWORD unset Set both for mandatory authentication, or neither. One alone stops boot
AWS_REGION Required with SES SES region
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY Required with SES SES credentials

Secret encryption key

Rollout encrypts Connection secrets with a fresh data key per write, and workspace secrets with one data key per workspace. The installation's provider wraps both kinds of data key. Keep that key for as long as you keep database backups, and store it apart from them.

Variable Default What it does
ROLLOUT_SECRETS_PROVIDER static static or gcp_kms. Credentials alone never select a provider. A build that requires a specific provider stops boot on a conflicting value
ROLLOUT_SECRETS_KEY Required with static Base64 encoding of exactly 32 bytes. Generate one with openssl rand -base64 32. Rejected with gcp_kms
ROLLOUT_KMS_KEY_NAME Required with gcp_kms Full key resource name. Rejected with static

A KMS key name has this form:

projects/PROJECT/locations/LOCATION/keyRings/KEYRING/cryptoKeys/KEY

The runtime identity must be allowed to wrap and unwrap with that key. Production has no development-key fallback.

Changing the provider or the key needs its own recovery and cutover plan. Setting a new value doesn't rewrap stored data, and reads fail closed, so existing Connections and workspace secrets stop working.

The release has a rewrap routine that moves workspace data keys, Connection secrets, App consumer credentials, Tool call data, the context behind Tool review Asks and parked run outputs from an old provider to a new one, and reports rotated, raced and failed counts. It doesn't rewrap an Ask's other private context or an MCP sign-in in progress, and its counts leave them out, so that data stops decrypting after a key change and the old key has to stay available. No release command wraps it, and it needs 2 providers pinned to the old and new keys, so it isn't a packaged rotation path. Take a full backup before any key change, and rehearse the change on a copy.

Object storage

Attachments and App files

Production always uses S3-compatible storage.

Variable Default What it does
STORAGE_BUCKET Required Bucket for attachments, App assets and built App frontends
STORAGE_REGION auto Bucket region
STORAGE_HOST storage.googleapis.com S3-compatible endpoint host
STORAGE_SCHEME, STORAGE_PORT https, scheme default Internal endpoint transport. Set http and the service port for a private MinIO
STORAGE_PATH_STYLE provider default true or 1 uses path-style bucket URLs, which MinIO and many S3-compatible stores need. false or 0 uses virtual-host buckets
STORAGE_PUBLIC_HOST, STORAGE_PUBLIC_SCHEME, STORAGE_PUBLIC_PORT internal endpoint Endpoint in every presigned URL, including browser uploads and downloads. App compiler containers must reach it too. Compose uses minio:9000 internally and your HTTPS storage hostname here
STORAGE_ACCESS_KEY_ID, STORAGE_SECRET_ACCESS_KEY unset HMAC credentials. Boot doesn't check them, but object operations fail without them

Object-store volumes

This tier backs volumes kept in a bucket, listed under Storage. It stays off unless the endpoint and the bucket are both set.

Variable Default What it does
ROLLOUT_OBJECT_STORE_ENDPOINT unset Endpoint host, such as GCS, Garage or MinIO
ROLLOUT_OBJECT_STORE_BUCKET unset Bucket name
ROLLOUT_OBJECT_STORE_REGION auto Region
ROLLOUT_OBJECT_STORE_ACCESS_KEY_ID, ROLLOUT_OBJECT_STORE_SECRET_ACCESS_KEY unset HMAC credentials
ROLLOUT_OBJECT_STORE_SCHEME https:// URL scheme
ROLLOUT_OBJECT_STORE_PATH_STYLE true false turns off path-style addressing, which Garage and MinIO require

Sign-in and OAuth clients

Variable Default What it does
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET unset Optional Google sign-in and the default Google OAuth client. Sign-in needs both values and open registration. Register https://<PHX_HOST>/auth/google/callback
SLACK_CLIENT_ID, SLACK_CLIENT_SECRET unset Slack OAuth app that installs Rollout's bot with chat:write and channels:read. Register https://<PHX_HOST>/connections/oauth/slack/callback
MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET unset Confidential Entra app for delegated Microsoft Graph Connections. Register https://<PHX_HOST>/connections/oauth/microsoft_graph/callback
MICROSOFT_OAUTH_TENANT organizations Entra authority for consent: common, organizations, consumers or a directory UUID

AI providers

Each provider uses its own key. The provider bills the account that supplies the credential. Rollout records measured usage and an estimate when a reference tariff is available. See Set up AI.

Variable Default What it does
ANTHROPIC_API_KEY unset Managed Anthropic
GEMINI_API_KEY unset Managed Gemini
OPENAI_API_KEY unset Managed OpenAI, limited to catalog models that report usage through the Responses API. Also backs the opt-in OpenAI retrieval embedder
OPENROUTER_API_KEY unset Managed OpenRouter. The key's presence enables the provider, and entitlements still decide who can use it
DEEPGRAM_API_KEY unset Bundled provider for the Speech to text node when no Connection is selected
PERPLEXITY_API_KEY unset The Search the web node
ROLLOUT_RETRIEVAL_LOCAL_EMBEDDER false true turns on the local embedder, for embedding with no external API, and makes it the default
ROLLOUT_RETRIEVAL_RERANKER false true turns on the local cross-encoder reranker

Workflow runtime

Limits bound each Docker container, not their sum. Concurrent runs, each with its steps, sidecars and run services, can still use up the host's memory together, and the host's out-of-memory killer may then stop any process: Rollout, its database or a step. Enforce limits on a host you've measured under your own load, and size it for the peaks you see there.

Variable Default What it does
ROLLOUT_RUNTIME auto-detect k8s, kubernetes or docker. Unset picks Kubernetes when the kubelet has injected KUBERNETES_SERVICE_HOST, and Docker otherwise. A workflow's explicit container spec still wins. New workflows start on this backend only while ROLLOUT_ALLOW_NATIVE_RUNTIME is off
ROLLOUT_ALLOW_NATIVE_RUNTIME true true or 1 lets a step run as a process of the Rollout server, with its environment and secrets. false or 0 refuses that: new workflows start on the ROLLOUT_RUNTIME backend, Native steps fail with capability_denied, and Run JavaScript and App builds move into containers. The Compose initializer writes false. Any other value stops boot. See Turn off Native
ROLLOUT_DOCKER_ENDPOINT http://localhost:2375 Docker API endpoint. The Compose initializer sets http://docker-api:2375 for its private proxy
ROLLOUT_DOCKER_LIMITS off off or enforce. enforce puts CPU, memory and pid limits on every container a Docker step creates, by class: a step 2 CPUs, 4 GiB and 1,024 pids; a run service 1 CPU, 1 GiB and 512; a sidecar 0.5 CPU, 512 MiB and 256; the volume ownership helper 0.25 CPU, 256 MiB and 128. CPU is a quota, so a host with fewer CPUs than a limit still runs the container. Swap equals memory. A step that outgrows its memory is killed and fails. A container the host can't limit as asked, because a cgroup controller is missing, is removed and fails instead of running unlimited. Before each container, Rollout asks the daemon (/info, which the Compose Docker proxy allows) whether it enforces limits at all, and refuses to start one on a daemon that doesn't, such as rootless Docker without cgroups. Run JavaScript's own CPU and memory replace a step's. off changes nothing. Any other value stops boot
ROLLOUT_DOCKER_CEILING_CPU, ROLLOUT_DOCKER_CEILING_MEMORY a step's limits The most a step may ask for, in millicores and bytes, while limits are enforced. A request above it fails the step instead of being cut down. A value that isn't a positive integer stops boot
ROLLOUT_WORKFLOW_EXECUTION_UNIT_TIMEOUT_MAX_MS 90 minutes Ceiling for one supervised workflow unit, from 720000 to 10800000. Node and whole-workflow clocks still apply
ROLLOUT_FQDN_NETWORK_POLICY_AVAILABLE false Kubernetes only. Whether the cluster serves the FQDNNetworkPolicy API that the egress allowlist needs. Set true or 1 only after you've confirmed it does. Off, the allowlist can't be turned on, so Rollout doesn't save a policy it can't enforce. See Keep the egress allowlist on Kubernetes
ROLLOUT_K8S_NAMESPACE rollout-runs Namespace for runner pods when no per-workspace routing applies
ROLLOUT_K8S_BUILDS_NAMESPACE unset Dedicated namespace for image-build and git-ref resolver Jobs. Unset, Docker builds keep runtime-handle routing and git App deploys use ROLLOUT_K8S_NAMESPACE. Each Job's credentials ride a short-lived Secret, so Rollout's service account needs create, patch, list and delete on Secrets in this namespace. list lets background cleanup remove a Secret that a crash left behind
ROLLOUT_K8S_RUNTIME_CLASS gvisor Sandbox RuntimeClass for runner pods. An empty value turns it off, and pods then run without kernel-level isolation
ROLLOUT_K8S_CACHE_STORAGE_CLASS cluster default StorageClass for the cache volume. Point it at an RWX class
ROLLOUT_K8S_VOLUME_STORAGE_CLASS cluster default StorageClass for workspace volumes
ROLLOUT_K8S_EXEC_TIMEOUT_MS 600000 Per-exec pod wait. A node's own timeout_ms still overrides it
ROLLOUT_SSH_STEP_IMAGE unset Default image for the containerized SSH path. It needs an ssh client and a SOCKS-capable nc
ROLLOUT_DENO_LOCATION /app/bin in the image Directory holding the deno binary, for containerized deployments
ROLLOUT_CODE_DENO_IMAGE pinned denoland/deno digest Step image for isolated code execution. It needs deno and a POSIX shell
ROLLOUT_DESKTOP_IMAGE digest pinned in config/config.exs Image of hosted desktop session pods: Xvfb, Chrome for Testing and the desktop worker (docker/desktop)
ROLLOUT_DESKTOP_DOCKER off on runs hosted desktops as containers on this host's Docker daemon instead of as pods, behind the desktop gateway that docker/compose.desktop.yaml adds. The installation runs one desktop at a time. Rollout refuses a daemon older than Docker Engine 28 or one that doesn't enforce memory, pid and CPU limits. It needs ROLLOUT_INSTALLATION_ID, which Compose also hands the desktop-watchdog service. That service removes desktops past their 4-hour limit while Rollout is down, within about 2 minutes while it's healthy, and Rollout reports it when it isn't, then hourly. It holds no database password or secret but can do on docker-api whatever Rollout can, so treat it as a Docker administrator. A desktop whose create the daemon never answered keeps the installation's one desktop and is reported after 10 minutes, then hourly. To free it: fence desktops with bin/rollout rpc 'Rollout.Workflows.Runtime.Docker.DesktopSlot.fence("<you>")', restart every Rollout replica, then docker-api, then the Docker daemon, in that order, then run bin/rollout rpc 'Rollout.Workflows.Runtime.Docker.DesktopSlot.resolve("<allocation id>", "<you>", %{"app_restarted_at" => "...", "docker_api_restarted_at" => "...", "dockerd_restarted_at" => "...", "reason" => "..."})' with those times in ISO 8601, and DesktopSlot.unfence("<you>") afterwards. It refuses unless the restarts came in that order, after the fence, and no container has the desktop's name, and it records an audit event. A desktop whose workspace was deleted is resolved the same way with DesktopSlot.resolve_orphan, recorded in the log and error tracking since the workspace's audit log is gone. If its container was created or no create was sent, Rollout frees the slot within 5 minutes by itself, and reports one whose container it can't remove, then hourly; resolve_orphan does the same removal by hand, with no fence or restarts. Any other value stops boot
ROLLOUT_INSTALLATION_ID unset This installation's id, a lowercase UUID. Its Docker desktops carry it, and so does the daemon's marker volume rollout-control-plane: Rollout refuses a daemon whose marker names another installation. Keep it with your backup. Never run a restored or cloned database against a live installation's daemon, since both would act on the same desktops. A malformed value stops boot
ROLLOUT_DESKTOP_GATEWAY http://desktop-gateway:3128 Where Docker desktops and Rollout reach the desktop gateway, as http://<host>:<port>. docker/compose.desktop.yaml names the gateway rollout-desktop-gateway-<ROLLOUT_INSTALLATION_ID> and sets this to match, so no other container on a network Rollout joins can answer in its place. A malformed value stops boot

Streaming and sessions

These limits apply to each pod. Rollout doesn't add them up across replicas, so the cluster-wide maximum for streams is ROLLOUT_STREAM_MAX_GLOBAL_PER_POD times the pod count. A refused stream fails with the stream_capacity step error. The Operator console's Runtime tab shows the counts for the pod serving your session.

Variable Default What it does
ROLLOUT_STREAM_MAX_GLOBAL_PER_POD 50 Concurrent streaming clusters across all workspaces on one pod
ROLLOUT_STREAM_MAX_PER_TENANT_PER_POD 5 Concurrent streaming clusters for one workspace on one pod
ROLLOUT_SESSION_MAX_PER_POD 10 Session hosts on one pod. A new session on a full pod waits for another pod. The plan's live-session limit is separate and covers a workspace across the cluster

Graceful shutdown

These 3 values protect in-flight streaming replies across a deploy. Each is a positive number of milliseconds. Boot fails unless ROLLOUT_TERMINATION_GRACE_MS is greater than ROLLOUT_OBAN_SHUTDOWN_GRACE_MS plus ROLLOUT_PRESTOP_SLEEP_MS, so retune them together with your platform's settings.

Variable Default What it does
ROLLOUT_OBAN_SHUTDOWN_GRACE_MS 45000 Job drain window
ROLLOUT_TERMINATION_GRACE_MS 75000 Must mirror the pod's terminationGracePeriodSeconds
ROLLOUT_PRESTOP_SLEEP_MS 8000 Must mirror the pod's preStop sleep

App builds

With Native off, App source compiles in a separate compiler image, paired with the running app by commit: unless you name an exact image, Rollout uses <repository>:<APP_GIT_SHA>. With Native allowed, Apps compile in a subprocess of the Rollout server and these settings do nothing.

An image with no stamped commit refuses App builds until you set ROLLOUT_APP_BUILD_IMAGE. Source builds through docker/compose.source.yaml are in that position, so ./scripts/self-host-init.sh --source sets it to the app-build image you build alongside rollout.

On Docker, Rollout sends no registry credentials, so it can only pull a missing compiler image from a registry that allows anonymous pulls. The default repository doesn't. Pull the image onto the Docker host before the first App build and on every upgrade, because its tag is the release's commit: see step 4 of Turn on Apps. The same goes for a private ROLLOUT_CODE_DENO_IMAGE. Step containers also have to reach STORAGE_PUBLIC_HOST.

Variable Default What it does
ROLLOUT_APP_BUILD_IMAGE_REPOSITORY repository built into the release Compiler image repository. Point it at a mirror that keeps the release's tags. The initializer sets it to the app-build repository beside ROLLOUT_IMAGE
ROLLOUT_APP_BUILD_IMAGE unset One exact compiler image, such as a digest in a private registry or an image built from docker/app-build/Dockerfile. It wins over the repository, and it doesn't follow an upgrade: change it with each release
APP_GIT_SHA set by the image build The release's commit, dev when nobody stamped it. Don't set this by hand

Compute

Untrusted image, PDF and docx parsing, OCR and custom models run as compute tasks. static and kubernetes keep them out of the web process. embedded, the default outside Compose, runs parsing and OCR inside it, and custom models too with ROLLOUT_COMPUTE_MODELS=any.

Variable Read by Default What it does
ROLLOUT_COMPUTE_PLACEMENT web embedded Where tasks run: embedded in the web process, static on one compute service, or kubernetes in managed pools
ROLLOUT_COMPUTE_URL web unset Compute server URL for static. Compose uses http://compute:4100
ROLLOUT_COMPUTE_KEY web, compute unset Shared request-signing key for static. The kubernetes placement derives one key per pool from SECRET_KEY_BASE instead
ROLLOUT_COMPUTE_KEY_FILE compute unset File holding the key. It wins over ROLLOUT_COMPUTE_KEY
ROLLOUT_COMPUTE_MODELS web, compute off any lets a shared compute server load custom models, and lets embedded run them in the web process. Set it only where every workspace is one trust domain
ROLLOUT_COMPUTE_SLOTS compute, web light 2 × schedulers, heavy schedulers Concurrent tasks per class, such as light:8,heavy:2. The web role passes it to pool pods
ROLLOUT_COMPUTE_PORT compute 4100 Listen port
ROLLOUT_COMPUTE_MAX_REQUESTS compute 5000 The compute process drains and exits after this many requests
ROLLOUT_COMPUTE_MAX_AGE_SECONDS compute 21600 The compute process drains and exits after this age, plus or minus 20%
ROLLOUT_COMPUTE_TENANT compute unset Makes the server answer only requests signed for one workspace. The control plane sets it on workspace pool pods
ROLLOUT_COMPUTE_IDLE_SECONDS compute unset Drains and exits after this long without a request. Workspace pool pods get 900
ROLLOUT_COMPUTE_IMAGE_REPOSITORY web unset Image repository for pool pods, tagged with APP_GIT_SHA. Unset turns off the pool
ROLLOUT_COMPUTE_REPLICAS web 2 Compute pods per web build
ROLLOUT_COMPUTE_CPU_REQUEST, ROLLOUT_COMPUTE_CPU_LIMIT web 250m, 2 Pool pod CPU
ROLLOUT_COMPUTE_MEMORY_REQUEST, ROLLOUT_COMPUTE_MEMORY_LIMIT web 512Mi, 2Gi Pool pod memory
ROLLOUT_ONNX_PROVIDER all cpu Model runner provider: cpu, or cuda on a GPU image
ROLLOUT_ONNX_THREADS all 1 Intra-op threads per model session, from 1 to 16
ROLLOUT_ONNX_WORKERS all 2 Model runner workers, from 1 to 4

GPU workers

Live sessions of the Watch a stream with a custom model node can request a GPU worker, with kubernetes placement and a configured pool. GPU demand is off by default.

Variable Default What it does
ROLLOUT_COMPUTE_GPU false true turns on GPU workers, with a quota of 1 or 2
ROLLOUT_COMPUTE_GPU_QUOTA 0 Cluster GPU slots: 0, 1 or 2. 1 permits L4 only. 2 permits L4 and optional T4
ROLLOUT_COMPUTE_GPU_T4 true true allows T4 as the second accelerator, with a quota of 2

Camera media

A camera's stream into the Watch a stream with a custom model node normally uses the Device channel. These variables send it directly to compute. A missing endpoint or embedded placement keeps the Device channel.

Variable Read by Default What it does
ROLLOUT_DIRECT_CAMERA_MEDIA web, compute false true turns on direct camera media
ROLLOUT_DIRECT_CAMERA_MEDIA_TRANSPORT web gateway gateway for kubernetes placement, or worker for static placement
ROLLOUT_DIRECT_CAMERA_MEDIA_URL web unset Fixed public media endpoint. Changing it asks people for consent again
ROLLOUT_MEDIA_GATEWAY_ENABLED web false true runs media gateway pods, with kubernetes placement and a configured pool
ROLLOUT_MEDIA_GATEWAY_KEY_FILE media Required with ROLLOUT_ROLE=media File holding the 32-byte admission key
ROLLOUT_MEDIA_GATEWAY_POD_UID media unset The pod's UID, which drain requests must match. Rollout's pod spec sets it
ROLLOUT_MEDIA_GATEWAY_PORT media 4100 Listen port
ROLLOUT_MEDIA_GATEWAY_CONTROL_URL media http://rollout.rollout.svc.cluster.local Control plane URL that gateway pods call over in-cluster HTTP

Calls

Variable Default What it does
TURN_SERVER_URL unset TURN server for WebRTC calls. Calls work with STUN alone on most networks
TURN_USERNAME, TURN_CREDENTIAL unset TURN credentials, read when TURN_SERVER_URL is set

Clustering and monitoring

Variable Default What it does
DNS_CLUSTER_QUERY unset DNS query for node discovery. Unset runs a single node
ROLLOUT_METRICS_PORT 9091 Internal /metrics port. A value that isn't a number is ignored
ROLLOUT_METRICS_TOKEN unset Bearer token for /metrics. The Compose initializer generates one. Without a token, anyone who can reach the listener can read it
ROLLOUT_PROMETHEUS_URL unset Prometheus base URL. It adds CPU hours, pod counts and storage usage to the Usage tab
ROLLOUT_PROMETHEUS_TIMEOUT_MS 10000 Per-query timeout for those reads
SENTRY_DSN unset Turns on backend error reporting to Sentry or a compatible service. Unset, nothing is sent
SENTRY_ENVIRONMENT production Environment name on reports, with SENTRY_DSN set
SENTRY_TRACES_SAMPLE_RATE 0.1 Trace sample rate from 0 to 1. An invalid value uses the default
SENTRY_FRONTEND_DSN unset Public browser DSN, with SENTRY_DSN set. Unset, browser reports are dropped
SENTRY_TUNNEL_UPSTREAM frontend DSN origin Internal HTTP or HTTPS ingest URL for browser reports. A path prefix is allowed. Credentials, a query, a fragment, traversal paths or an invalid port stop boot
SENTRY_API_URL, SENTRY_API_TOKEN, SENTRY_ORG, SENTRY_PROJECT unset Sentry Web API access for finding cron monitors that no worker checks into. The token needs org:read, plus alerts:write for SENTRY_MONITOR_REAP. Missing any one turns the check off
SENTRY_MONITOR_REAP off true deletes those monitors instead of only reporting them

Compose stack

These belong to compose.yaml and the initializer. The application doesn't read them.

Variable Set by What it does
ROLLOUT_IMAGE You Image for migrate, rollout and compute. It must name a release, a commit or a digest
STORAGE_PUBLIC_HOST You Your storage hostname, which the initializer requires. The app reads it too, as above
POSTGRES_DB, POSTGRES_USER, POSTGRES_PASSWORD Initializer Bundled PostgreSQL
MINIO_ROOT_USER, MINIO_ROOT_PASSWORD Initializer Bundled object store. Silo keeps these MinIO names
BUILD_JOBS You Native compile parallelism for source builds. Defaults to 4
RELEASE_DISTRIBUTION, RELEASE_TMP, HOME compose.yaml Compute service only: no node distribution, and temporary files on its tmpfs

The initializer also accepts MAIL_*, SMTP_*, AWS_*, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, ROLLOUT_LICENSE, SANDBOX_HOST and OPERATOR_EMAILS, and copies them into .env.selfhost. It writes ROLLOUT_COMPUTE_KEY to .env.compute, which the app, the migration job and the compute service share.