Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Configuration

The server is configured only with environment variables. Only QUBIT_SECRET_KEY is required. Booleans accept true/false, 1/0, yes/no and on/off.

Core

path QUBIT_SECRET_KEYstringrequired
Base64 of 32 random bytes, standard or URL-safe. It encrypts each organization's SSH CA private key, pending invite tokens, TOTP secrets and the email settings saved from the dashboard. Generate one with openssl rand -base64 32 or qubit-server gen-secret. Back it up: see Backups.
path QUBIT_SECRET_KEY_PREVIOUSstringdefault: unset
Comma-separated older keys, used only to decrypt during a key rotation.
path QUBIT_LISTENaddressdefault: 0.0.0.0:8787
Address for the app, the API and the dashboard.
path QUBIT_METRICS_LISTENaddressdefault: 0.0.0.0:9787
Address for Prometheus /metrics. off turns it off. Metrics are never served on the public port.
path DATABASE_URLstringdefault: sqlite:///data/qubit.db
sqlite://<path>, or postgres://… / postgresql://…. Postgres TLS options such as ?sslmode=require work. See PostgreSQL.
path QUBIT_DB_MAX_CONNECTIONSnumberdefault: 10
Database pool size, per replica.
path RUST_LOGstringdefault: info
Log filter, for example info,qubit_server=debug.

Addresses

path QUBIT_PUBLIC_URLurldefault: unset
The server's external address, for example https://qubit.example.com. Used in invite links (<url>/invite/<token>), as the default SMTP EHLO name, and as the dashboard's address when QUBIT_WEB_URL is unset.
path QUBIT_WEB_URLurldefault: QUBIT_PUBLIC_URL
Where the web dashboard lives. Used for the setup link, email sign-in links and, on Qubit Cloud, Stripe's return links. Set it only when the dashboard is on a different address than the server.
path QUBIT_WEB_DIRpathdefault: /usr/share/qubit/web in the image
A built dashboard (app.html and app-assets/) for the server to serve itself. The server refuses to start if the directory has no app.html.
path QUBIT_TRUST_PROXYbooleandefault: false
When true, the client IP is the last X-Forwarded-For entry, the one your own proxy appended. Turn it on only behind a proxy you control. Audit logs and rate limits use this IP.

Accounts and sessions

path QUBIT_ALLOW_SIGNUPSbooleandefault: true
Whether new accounts can be registered from the app. The first-run setup works either way.
path QUBIT_SESSION_TTL_HOURSnumberdefault: 720
How long a sign-in session lasts (30 days).
path QUBIT_INVITE_TTL_HOURSnumberdefault: 168
How long an organization invite stays valid (7 days).
path QUBIT_LOGIN_ATTEMPTS_PER_15MINnumberdefault: 10
Failed sign-in or recovery attempts allowed per client IP and email before the server answers 429. Counted in memory, per replica.

Email

See Email. These win over settings saved in the dashboard and make them read-only.
path QUBIT_SMTP_URLurldefault: unset
smtps://user:pass@host:465 (implicit TLS) or smtp://user:pass@host:587?tls=required (STARTTLS). Percent-encode the username and password.
path QUBIT_SMTP_FROMstringdefault: unset
Sender, for example Qubit <[email protected]>. Required with QUBIT_SMTP_URL.
path QUBIT_SMTP_HELOstringdefault: host of QUBIT_PUBLIC_URL
The EHLO name. Use a fully qualified domain name; some relays drop localhost.

Billing

Billing is off unless QUBIT_STRIPE_SECRET_KEY is set, so a self-hosted server has no plans and no member limits. Leave these unset. Qubit Cloud uses them.
path QUBIT_STRIPE_SECRET_KEYstringdefault: unset
Turns billing on. A restricted key needs write access to Customers, Checkout Sessions and Customer portal, and read access to Prices and Subscriptions.
path QUBIT_STRIPE_WEBHOOK_SECRETstringdefault: unset
Signing secret of the webhook at QUBIT_PUBLIC_URL/webhooks/stripe. Required with the key. Subscribe it to checkout.session.completed, customer.subscription.created, .updated, .deleted, .paused, .resumed, invoice.payment_failed and invoice.payment_succeeded.
path QUBIT_STRIPE_PRICE_LOOKUP_KEYstringdefault: qubit_business_monthly
Lookup key of the paid plan's monthly price.
path QUBIT_STRIPE_PORTAL_CONFIGURATIONstringdefault: unset
A bpc_… customer portal configuration. Stripe's default when unset.
path QUBIT_STRIPE_API_URLurldefault: https://api.stripe.com
Stripe's API, for tests against a mock.
path QUBIT_FREE_MEMBER_LIMITnumberdefault: 1
Members an organization may have without the paid plan. At least 1.
With billing on, QUBIT_WEB_URL (or QUBIT_PUBLIC_URL) is required.