رفتن به محتوا
Docs

این راهنما فقط به انگلیسی موجود است.

Configuration reference

Every setting of a self-hosted server: where it lives, its default and what it does.

A self-hosted server reads its settings from one file, .env, in the install folder (~/vixi unless you chose another). The installer writes it once with unique secrets and never changes it again. This page lists every setting you can change, its default and what it does.

Change a setting

  1. Open .env in the install folder. Only your user can read it, and it should stay that way.
  2. Change or add the line, for example OPENAI_MODEL=your-model.
  3. Apply it:
Shell
cd ~/vixi && ./vixi-ctl.sh up

Docker Compose recreates only the services whose settings changed. Run ./vixi-ctl.sh doctor afterwards to check that everything is healthy. The kit's .env.example lists the same settings with short comments. Don't copy it over your .env: it has no secrets.

Install and images

SettingDefaultWhat it does
COMPOSE_PROJECT_NAMEvixiName of this install in Docker. Its volumes and networks start with it.
COMPOSE_FILEdocker-compose.ymlThe Compose files to combine, separated by :. With a domain, the installer adds docker-compose.tls.yml. With --gvisor, it adds docker-compose.gvisor.yml.
COMPOSE_PROFILESfiles,browserOptional parts: files (document and media tools), browser (browser and coding tool volumes) and ollama (a local model server). Empty means core services only.
VIXI_VERSIONv0.2.1Release tag of every Vixi image. Change it with ./vixi-ctl.sh upgrade <version>, not by hand.
VIXI_REGISTRYghcr.io/aradhajariWhere the images come from. Change it only if you build and host your own images.
VIXI_USER_IMAGE_REGeneratedThe only image a workspace may run. The Docker policy proxy refuses any other.
HERMES_BROWSER_VOLUME, HERMES_DEVTOOLS_VOLUMESet with the browser profileNames of the read-only browser and coding tool volumes. They include the version, and upgrade renames them.

Address and network

SettingDefaultWhat it does
PUBLIC_URLhttp://localhost:8080The address people and apps use. Links in emails and OAuth callbacks are built from it.
VIXI_DOMAINEmptyThe domain, when you use one.
VIXI_SITE_ADDRESS:80What Caddy serves. :80 means plain HTTP, for this computer only or behind your own HTTPS proxy. A domain name turns on automatic HTTPS.
VIXI_HTTP_PORT8080Local port when there is no domain. It listens on 127.0.0.1 only.
VIXI_TRUSTED_PROXIES127.0.0.1/32Proxies in front of Caddy whose forwarded visitor address Vixi trusts, as addresses or ranges. Rate limits and sign-in records use that address.
SANDBOX_BLOCKEmptyExtra IPv4 ranges that workspaces can't reach, separated by commas. Add your server's public address here, for example 203.0.113.10/32.
DOCKER0_ADDRESS172.17.0.1gVisor layout only: the address of Docker's default bridge, where the gateway's ports are published.
DOCKER_SOCKET_PATH/var/run/docker.sockThe Docker socket that only the Docker policy proxy mounts.

See Domain and HTTPS for how to set up a domain or your own proxy.

Model providers

SettingDefaultWhat it does
OPENAI_API_KEY, OPENAI_MODELEmptyAn OpenAI key, and an optional chat model to use instead of the default.
ANTHROPIC_API_KEY, ANTHROPIC_MODELEmptyAn Anthropic key and optional chat model.
GEMINI_API_KEY, GEMINI_MODELEmptyA Google Gemini key and optional chat model.
OPENROUTER_API_KEY, OPENROUTER_MODELEmptyAn OpenRouter key and optional chat model.
OLLAMA_BASE_URL, OLLAMA_MODELEmptyAn Ollama server and the model to use. Ollama needs both. With the ollama profile, the URL is http://ollama:11434.

You only need one provider. A key the owner saves in the app is used instead of the one here. Models explains which provider answers, the default model of each and what embeddings and images need.

Email

SettingDefaultWhat it does
RESEND_API_KEYEmptyA Resend key. With it, Vixi can email sign-in codes, invitations and password resets.
EMAIL_FROMEmptyThe sender address for those emails.

Without email, people sign in with their password. In invite-only mode, invited people must prove they own their address only when email is set up.

OAuth apps

Each connected app that uses OAuth needs a client ID and secret from an OAuth app you create with that provider. Set its redirect address to <PUBLIC_URL>/v1/oauth/callback/<provider>. Google sign-in also uses <PUBLIC_URL>/v1/auth/oauth/google/callback.

SettingDefaultWhat it does
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRETEmptyGoogle: Gmail, Calendar, Drive and more, plus Google sign-in
MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRETEmptyMicrosoft 365
GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRETEmptyGitHub
SLACK_CLIENT_ID, SLACK_CLIENT_SECRETEmptySlack
NOTION_CLIENT_ID, NOTION_CLIENT_SECRETEmptyNotion
LINEAR_CLIENT_ID, LINEAR_CLIENT_SECRETEmptyLinear
SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRETEmptySpotify
DROPBOX_CLIENT_ID, DROPBOX_CLIENT_SECRETEmptyDropbox

Control also reads <NAME>_CLIENT_ID and <NAME>_CLIENT_SECRET for these providers. They aren't in the Compose file, so pass them with an override file (next section):

DISCORD, TODOIST, ZOOM, ATLASSIAN, GITLAB, FIGMA, STRAVA, REDDIT, BOX, ASANA, X, AIRTABLE, CALENDLY, HUBSPOT, OURA, MIRO, CANVA, SALESFORCE, QUICKBOOKS, XERO, PIPEDRIVE, MAILCHIMP, INTERCOM, MONDAY, CLICKUP, DOCUSIGN, TYPEFORM, SHOPIFY

Without a client ID, that app can't be connected on your server. Connections that use a token, a QR code or a paired device don't need any of this. See Connected apps.

Override files

To pass a setting that isn't in docker-compose.yml, or to change a service, create compose.override.yml in the install folder:

YAML
services:
  control:
    environment:
      GITLAB_CLIENT_ID: your-client-id
      GITLAB_CLIENT_SECRET: your-client-secret

Because .env sets COMPOSE_FILE, Docker Compose doesn't pick the file up on its own. Add it at the end of the list, then run ./vixi-ctl.sh up:

.env
COMPOSE_FILE=docker-compose.yml:compose.override.yml

With a domain, keep the TLS file in the list: docker-compose.yml:docker-compose.tls.yml:compose.override.yml. Upgrades don't touch your override file.

Workspace limits

SettingDefaultWhat it does
INSTANCE_MEMORY_BYTES1.5 GiBMost memory one workspace may use.
INSTANCE_MEMORY_RESERVE_BYTES768 MiBMemory set aside for each awake workspace when Vixi decides whether another one fits.
INSTANCE_NANO_CPUS2 CPUsCPU limit of one workspace, in billionths of a CPU (2000000000).
WORKER_MEMORY_HEADROOM_BYTES2 GiBMemory always kept free for the system and Vixi's own services.
MAX_AWAKE_INSTANCES10How many workspaces can be awake at once before others wait in line.

Values are plain numbers of bytes in .env. Raise the limits if people run large builds or many browser tabs. Lower MAX_AWAKE_INSTANCES on a small server.

Advanced control settings

Control reads these too. They keep safe defaults, so most servers never set them. Pass them to control with an override file.

SettingDefaultWhat it does
LOG_LEVELinfoHow much control logs. debug shows more.
RATE_LIMIT_AUTH_MAX, RATE_LIMIT_WINDOW20 per minuteSign-in requests allowed from one address.
LOGIN_FAIL_MAX, LOGIN_FAIL_WINDOW_SEC10 in 900 sFailed password attempts for one account before password sign-in pauses. Emailed codes still work.
MAX_CONCURRENT_WAKING3Workspaces started from the waiting line at the same time.
BLOB_MAX_BYTES20 MiBLargest single upload that control stores.

Generated secrets

The installer generates these. Don't change them on a running server: tokens, saved secrets and the database would stop working.

SettingUsed for
POSTGRES_DB, POSTGRES_PASSWORDThe database. Its name also makes this install's ID unique.
VIXI_ENV_IDLabels this install's workspaces and volumes, so two installs on one Docker host never touch each other's.
REDIS_PASSWORDRedis
SETUP_TOKENCreating the owner account. See setup.
JWT_SECRETServer-side signing
JWT_PRIVATE_KEY, JWT_PUBLIC_KEYSAn Ed25519 pair. Control signs access tokens with the private half; the edge only gets the public half.
VAULT_MASTER_KEYEncrypts the vault and saved model keys
EDGE_SHARED_SECRETCalls between the edge and control
FILES_TOKEN_SECRETAccess to the file service
DOCKER_PROXY_TOKENControl's access to the Docker policy proxy
LITELLM_MASTER_KEY, LITELLM_SALT_KEYThe model proxy and the encryption of the model settings it stores

Compose also fixes some settings that you shouldn't change, such as SELF_HOSTED=true, PAYMENTS_PROCESSOR=none and PUSH_PROVIDER=off. So payments and phone push notifications are off on a self-hosted server.