# Configuration

> Every setting of the App server.

Applies to: the Sypnia engine (open source, self-hosted).  
Source: https://app.docs.sypnia.com/self-hosting/configuration/

For agents: Settings (env): SYPNIA_APP_DATABASE_URL (required), SYPNIA_APP_PUBLIC_URL (required), SYPNIA_APP_AUTH_URL (Sypnia Data engine, required), SYPNIA_APP_AGENT_URL (Agent runner, required), SYPNIA_APP_PRODUCTS (comma list name=url for cases, git, data, files, run, telemetry, mail, domains, design, ai, learn, skills), SYPNIA_APP_FILES_URL (attachments; default: local disk SYPNIA_APP_UPLOADS_DIR=/var/lib/sypnia-app/uploads), SYPNIA_APP_SMTP_URL or SYPNIA_APP_MAIL_URL (e-mail notifications, optional), SYPNIA_APP_VAPID_PUBLIC_KEY / SYPNIA_APP_VAPID_PRIVATE_KEY (phone notifications, optional), SYPNIA_APP_DESKTOP_UPDATES (url | off; default off), SYPNIA_APP_AUTO_MIGRATE (false), SYPNIA_APP_PORT (8090), SYPNIA_APP_LOG (info), SYPNIA_APP_TELEMETRY_KEY (optional ingest key to watch App with Telemetry), SYPNIA_APP_MAX_UPLOAD_MB (25).

### `SYPNIA_APP_DATABASE_URL`* **Key:** `database_url`
* **Type:** string
* **Default:** `none (required)`
* \[Engine]Postgres 16 or newer.

### `SYPNIA_APP_PUBLIC_URL`* **Key:** `public_url`
* **Type:** string
* **Default:** `none (required)`
* \[Engine]The address people open, such as `https://app.laespiga.co`.

### `SYPNIA_APP_AUTH_URL`* **Key:** `auth_url`
* **Type:** string
* **Default:** `none (required)`
* \[Engine]Your Sypnia Data engine, used for sign-in.

### `SYPNIA_APP_AGENT_URL`* **Key:** `agent_url`
* **Type:** string
* **Default:** `none (required)`
* \[Engine]Your Agent runner.

### `SYPNIA_APP_PRODUCTS`* **Key:** `products`
* **Type:** string
* **Default:** `empty`
* \[Engine]The engines you run, as `name=url` separated by commas: `cases`, `git`, `data`, `files`, `run`, `telemetry`, `mail`, `domains`, `design`, `ai`, `learn`, `skills`. Each one appears on the board and in the Products menu.

### `SYPNIA_APP_FILES_URL`* **Key:** `files_url`
* **Type:** string
* **Default:** `none`
* \[Engine]A Sypnia Files engine for attachments. Without it, attachments are kept on disk in `SYPNIA_APP_UPLOADS_DIR` (default `/var/lib/sypnia-app/uploads`).

### `SYPNIA_APP_MAX_UPLOAD_MB`* **Key:** `max_upload_mb`
* **Type:** number
* **Default:** `25`
* \[Engine]Largest attachment, in MB.

### `SYPNIA_APP_MAIL_URL`* **Key:** `mail`
* **Type:** string
* **Default:** `none`
* \[Engine]A Sypnia Mail engine for e-mail notifications. Or `SYPNIA_APP_SMTP_URL` (`smtp://user:pass@host:587`). Without either, no e-mail is sent.

### `SYPNIA_APP_VAPID_PUBLIC_KEY`* **Key:** `vapid`
* **Type:** string
* **Default:** `none`
* \[Engine]With `SYPNIA_APP_VAPID_PRIVATE_KEY`: the keys for phone and browser notifications. Without them, notifications reach the web and the desktop app only.

### `SYPNIA_APP_DESKTOP_UPDATES`* **Key:** `desktop_updates`
* **Type:** string
* **Default:** `off`
* \[Engine]`off`, or the address of an update manifest the desktop apps signed in to this server should follow.

### `SYPNIA_APP_TELEMETRY_KEY`* **Key:** `telemetry_key`
* **Type:** string
* **Default:** `none`
* \[Engine]An ingest key, to watch your App server with Sypnia Telemetry.

### `SYPNIA_APP_AUTO_MIGRATE`* **Key:** `auto_migrate`
* **Type:** boolean
* **Default:** `false`
* \[Engine]Apply database migrations at start.

### `SYPNIA_APP_PORT`* **Key:** `port`
* **Type:** number
* **Default:** `8090`
* \[Engine]The port the server listens on.

### `SYPNIA_APP_LOG`* **Key:** `log`
* **Type:** string
* **Default:** `info`
* \[Engine]`error`, `warn`, `info` or `debug`.
