# Configuration

> Every key of zaun-host.toml, its default and its allowed values.

Unknown keys are refused, and the file must never hold secrets. See
[Configuring a host](/docs/guide/host/configuration/) for the reasoning behind each section.

## Top level

| Key | Default | Meaning |
|---|---|---|
| `data_dir` | (required) | the data directory |
| `smp_servers` | `[]` | SMP relays; empty means the official SimpleX servers. Addresses with an embedded password are refused |
| `xftp_servers` | `[]` | XFTP file servers; empty means the official ones when `smp_servers` is empty too |
| `max_connections` | `1000` | connected or connecting, before new requests are refused |
| `in_flight_window` | `48` | per-member messages in flight, 32–64 |
| `community_creation` | `"closed"` | `"closed"`, `"allow_list"` or `"open"` |
| `creation_allow_list` | `[]` | community ids (base64url) allowed with `"allow_list"` |
| `log_level` | `"info"` | `off`, `error`, `warn`, `info`, `debug` |
| `passphrase_file` | `D/simplex.key` | the store passphrase file (mode 0600); `ZAUN_HOST_PASSPHRASE` overrides it |

## `[attachments]`

| Key | Default | Range |
|---|---|---|
| `enabled` | `true` | |
| `max_file_mb` | `25` | 1–1024 |
| `community_quota_mb` | `2048` | 1–1 048 576 |
| `transfers` | `8` | 1–12, host-wide |

## `[voice]`

| Key | Default | Meaning |
|---|---|---|
| `enabled` | `true` | |
| `mesh_max` | `8` | participants per voice channel, 2–10 |
| `ice_servers` | `[]` | STUN/TURN URLs given to clients |
| `ice_policy` | — | `"relay"` (TURN only; needs a `turn:` server) or `"all"` |
| `ice_credentials_file` | — | a file (mode 0600) with the TURN `username` and `credential` |

## `[bots]`

Every value is a ceiling: owners can grant less, never more.

| Key | Default | Range / meaning |
|---|---|---|
| `enabled` | `true` | `false`: no bot runs, and owners can't install any |
| `allow_remote_install` | `true` | owners may install bots from their app |
| `allow_unsigned` | `false` | development only |
| `max_bots` | `20` | per community, 1–50 |
| `allow_network` | `false` | whether any bot may be granted internet access |
| `network_allow_list` | `[]` | when set, granted hosts must be listed here exactly (lower-case names, an optional leading `*.`) |
| `max_memory_mb` | `64` | per bot, 8–4096 |
| `cpu_ms_per_call` | `500` | per handler call, 10–60 000 |
| `max_storage_mb` | `64` | per bot, 1–1024 |
| `allow_update_checks` | `false` | let the host fetch bots' `update_url` (planned) |
| `allow_voice` | `true` | whether any bot may be granted `voice` (join voice channels and play audio) |
| `allow_dms` | `true` | whether any bot may be granted `dms` (direct messages with members) |
| `http_proxy` | — | `socks5h://…` or `http://…`, no credentials: route bots' requests through it |
