> For the complete documentation index, see [llms.txt](https://docs.aethercube.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aethercube.fr/developers/running-a-server/configuration-reference.md). Agents can also search and read this documentation through its [MCP server](https://docs.aethercube.fr/~gitbook/mcp).

# server.yml reference

Every setting of the server lives in one YAML file, `config/server.yml` by default. This page is the reference you keep open while you edit it. The commented template is `game-server/config/server.example.yml`.

How the file behaves:

* Every section and key is optional. A missing key keeps its default. A section left empty (`key:` alone) keeps its defaults.
* **Unknown keys are rejected.** I would rather stop the start-up on a typo than let you run with a setting that does nothing.
* Lists replace the default list. They are not merged.
* The server validates the whole file, prints every problem at once, then exits with status 2. You fix everything in one pass.
* Relative paths resolve against the [base directory](https://docs.aethercube.fr/developers/running-a-server/requirements-and-installation.md#server-directory-layout).
* The file is read once at start. Restart the server to apply a change.

## `server`

| Key                        | Type           | Default               | Meaning                                                                                                                                                                                                                                                                                                                                                                  |
| -------------------------- | -------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `name`                     | string         | `Aethercube Server`   | Public name, 1 to 64 characters. Directory metadata is managed on the backend.                                                                                                                                                                                                                                                                                           |
| `game_version`             | string         | this server's version | Semantic version announced in `ServerHello` and in heartbeats. `x.y.z` with optional `-pre` suffix. The launcher only joins a server whose version equals the installed game: leave it out so the server announces its own release, which matches the client of the same release.                                                                                        |
| `bind_address`             | string         | `0.0.0.0`             | Interface to listen on. With `online_mode: false` it must be a loopback address (`127.0.0.1`, `::1`) unless `allow_public_offline` is `true`.                                                                                                                                                                                                                            |
| `port`                     | int            | `25565`               | TCP port, 0 to 65535. `0` picks a free port.                                                                                                                                                                                                                                                                                                                             |
| `max_players`              | int            | `100`                 | Capacity, 1 to 10000.                                                                                                                                                                                                                                                                                                                                                    |
| `online_mode`              | bool           | `true`                | `true`: players need a backend ticket. `false`: local, unauthenticated identities. Development and private use only.                                                                                                                                                                                                                                                     |
| `allow_public_offline`     | bool           | `false`               | Lets an offline server listen on an address that is not loopback. Without it, the server refuses to start. With it, names in `permissions.operators` are not made operators. Ignored in online mode. See [Online mode, TLS and the directory](https://docs.aethercube.fr/developers/running-a-server/online-mode-tls-and-directory.md#offline-mode-on-a-public-address). |
| `default_world`            | string         | `overworld`           | Name of the world players spawn in. 1 to 32 characters of `a-z 0-9 _ -`. It is also the world's folder name.                                                                                                                                                                                                                                                             |
| `shutdown_timeout_seconds` | int            | `30`                  | Budget of the ordered shutdown, 1 to 600.                                                                                                                                                                                                                                                                                                                                |
| `tags`                     | list of string | `[]`                  | Directory tags. At most 10, each `[a-z0-9][a-z0-9-]{0,23}`.                                                                                                                                                                                                                                                                                                              |
| `view_distance`            | int            | `10`                  | Horizontal radius, in chunks, streamed around each player. 2 to 32.                                                                                                                                                                                                                                                                                                      |
| `entity_tracking_range`    | int            | `96`                  | Distance, in blocks, within which players see other entities. 16 to 512.                                                                                                                                                                                                                                                                                                 |
| `join_messages`            | list of string | `[]`                  | Lines sent as system messages to each player once they are in the world, after `PlayerJoinEvent`. At most 10 lines of 1 to 256 characters, without control characters. `{player}` is replaced by the player's display name.                                                                                                                                              |

## `tls`

TLS 1.3 only. There is no plaintext mode.

| Key                 | Type | Default                    | Meaning                                                                                                               |
| ------------------- | ---- | -------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `certificate_chain` | path | `config/tls/fullchain.pem` | PEM certificate chain. Required unless `self_signed`.                                                                 |
| `private_key`       | path | `config/tls/privkey.pem`   | PEM PKCS#8 private key. Required unless `self_signed`.                                                                |
| `self_signed`       | bool | `false`                    | Generate an ephemeral self-signed certificate at every start. Development only. Refused when `online_mode` is `true`. |

## `backend`

Read when `server.online_mode` or `master.enabled` is `true`. Otherwise it is not used.

| Key           | Type | Default                    | Meaning                                                                                                                                                                                                                                           |
| ------------- | ---- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `endpoint`    | URL  | `http://127.0.0.1:8080`    | Backend base URL. It must be `https`. Plain `http` is accepted only for a loopback host (`127.0.0.1`, `::1`, `localhost`), since tickets and signed requests would otherwise cross the network in clear. Any other `http` URL stops the start-up. |
| `timeout_ms`  | int  | `3000`                     | Request timeout, 100 to 60000.                                                                                                                                                                                                                    |
| `server_id`   | UUID | empty                      | The id returned when the server was registered. Required in these modes.                                                                                                                                                                          |
| `secret_file` | path | `config/server-secret.txt` | A file that contains only the server secret. On POSIX systems the server refuses a file readable by group or others: use `chmod 600`.                                                                                                             |

## `master`

| Key                          | Type | Default | Meaning                                                                                         |
| ---------------------------- | ---- | ------- | ----------------------------------------------------------------------------------------------- |
| `enabled`                    | bool | `true`  | Send heartbeats to the backend directory. Requires `server.online_mode: true`.                  |
| `heartbeat_interval_seconds` | int  | `10`    | 5 to 15. The backend expires an entry after 20 seconds and accepts one heartbeat per 5 seconds. |

## `network`

| Key                                  | Type | Default | Meaning                                                                                                                                        |
| ------------------------------------ | ---- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `compression.enabled`                | bool | `true`  | Compress outbound payloads above the threshold with Zstd.                                                                                      |
| `compression.threshold`              | int  | `1024`  | Bytes. At least 64.                                                                                                                            |
| `compression.level`                  | int  | `3`     | Zstd level, 1 to 19.                                                                                                                           |
| `limits.max_packets_per_second`      | int  | `500`   | Inbound packets per connection. At least 10.                                                                                                   |
| `limits.max_inbound_queue`           | int  | `4096`  | Packets queued per player for the simulation. At least 16.                                                                                     |
| `limits.max_connections`             | int  | `1024`  | Concurrent connections, handshakes included. At least 1.                                                                                       |
| `limits.max_connections_per_address` | int  | `8`     | Concurrent connections from one address. At least 1. An IPv4 address counts as itself, an IPv6 address as its /64 network. Loopback is exempt. |
| `limits.max_handshakes_per_address`  | int  | `4`     | Connections from one address that are not in the world yet. At least 1. Counted like the previous key.                                         |

A LAN party, a school, a company or players behind one carrier-grade NAT all reach your server from the same public IPv4 address. With the default of 8, the ninth player of that group is refused. If you expect it, raise `max_connections_per_address` (to your player count, for example) and `max_handshakes_per_address` (a group that joins together needs more than 4). Both limits only protect against one address opening too many connections, so raise them for the groups you know, not for everyone.

Fixed timeouts, not configurable: `ClientHello` within 5 s of connecting, `ClientCapabilities` within 5 s of `ServerHello`, authentication within 10 s, a keep-alive every 10 s, and a connection with no packet for 30 s is dropped.

## `world`

These keys apply **when the world is created**. An existing world keeps the values recorded in its `world.meta`. See [Worlds, saves and backups](https://docs.aethercube.fr/developers/running-a-server/worlds-saves-and-backups.md).

| Key                       | Type                    | Default              | Meaning                                                                                                                                                  |
| ------------------------- | ----------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `seed`                    | int (64-bit)            | random               | Generation seed. Omit for a random one.                                                                                                                  |
| `generator`               | string                  | `aethercube:terrain` | `aethercube:terrain`, `aethercube:flat`, or the key of a plugin generator. A world whose generator is not registered refuses to load.                    |
| `generator_config`        | map of string to string | `{}`                 | Generator options, for example `{ sea_level: "62" }` or `{ surface_height: "8" }`.                                                                       |
| `min_height`              | int                     | `0`                  | Lowest block y. A multiple of 32, 0 or more, below `max_height`.                                                                                         |
| `max_height`              | int                     | `256`                | Highest block y, exclusive. A multiple of 32, at most 4096.                                                                                              |
| `expose_seed`             | bool                    | `false`              | Send the real seed in `WorldInitialize`. Otherwise it sends 0.                                                                                           |
| `day_length_seconds`      | int                     | `1200`               | Real seconds per in-game day. 60 to 86400.                                                                                                               |
| `weather_cycle`           | bool                    | `true`               | Run the weather cycle. When off, weather changes only through `/weather` or plugins.                                                                     |
| `difficulty`              | string                  | `normal`             | `peaceful`, `easy`, `normal` or `hard`. Scales the damage creatures and bosses deal to players by 0, 0.5, 1 and 1.5. Change it later with `/difficulty`. |
| `border.center`           | `[x, z]`                | `[0, 0]`             | Centre of the square world border. Two finite numbers within 30 000 000.                                                                                 |
| `border.diameter`         | number                  | `30000`              | Side of the square, 16 to 60 000 000.                                                                                                                    |
| `border.damage_per_block` | number                  | `0.2`                | Damage per block, every second, beyond 5 blocks outside. 0 to 100.                                                                                       |
| `structures`              | bool                    | `true`               | Plan the structures, the Hearthstead included. When `false`, the spawn falls back to the generator's spawn column.                                       |
| `bonus_chest`             | bool                    | `false`              | A chest of `aethercube:bonus_chest` stands by the spawn when the world is created.                                                                       |

Weather, difficulty and border survive restarts.

## `storage`

| Key                         | Type   | Default       | Meaning                                                                                                                                                                                                                                   |
| --------------------------- | ------ | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `data_directory`            | path   | `server-data` | Holds `worlds/`, `backups/`, `players/`, `permissions.json`, `whitelist.json`, `bans.json` and `ip-bans.json`.                                                                                                                            |
| `region_size`               | int    | `32`          | Fixed by region format v1. Must be 32.                                                                                                                                                                                                    |
| `autosave_interval_seconds` | int    | `60`          | Save modified chunks this often. 5 to 3600.                                                                                                                                                                                               |
| `snapshot_interval_minutes` | int    | `15`          | Take a complete backup this often. `0` disables the scheduled backup (`/backup now` still works). 0 to 1440. See [Worlds, saves and backups](https://docs.aethercube.fr/developers/running-a-server/worlds-saves-and-backups.md#backups). |
| `snapshot_retention`        | int    | `4`           | Backups kept per world. 1 to 100.                                                                                                                                                                                                         |
| `compression`               | string | `zstd`        | `zstd` or `none`.                                                                                                                                                                                                                         |
| `compression_level`         | int    | `3`           | Zstd level, 1 to 19.                                                                                                                                                                                                                      |
| `journal_sync`              | string | `commit`      | `commit` runs an fsync at every journal commit (production). `none` is for development only.                                                                                                                                              |

## `creatures`

| Key          | Type | Default | Meaning                                                                                                                             |
| ------------ | ---- | ------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `enabled`    | bool | `true`  | Natural spawning of wild creatures around players, from the biome spawn tables. Server code and plugins can always spawn creatures. |
| `per_player` | int  | `4`     | Creatures kept within 48 blocks of each player. 0 to 32.                                                                            |

## `metrics`

| Key            | Type   | Default     | Meaning                                                                              |
| -------------- | ------ | ----------- | ------------------------------------------------------------------------------------ |
| `enabled`      | bool   | `true`      | Serve the Prometheus endpoint `GET /metrics`.                                        |
| `bind_address` | string | `127.0.0.1` | Keep it on loopback or a private network. The metrics reveal load and player counts. |
| `port`         | int    | `9464`      | 1 to 65535. Must differ from `server.port`.                                          |

See [Performance and metrics](https://docs.aethercube.fr/developers/running-a-server/performance-and-metrics.md).

## `plugins`

| Key         | Type | Default   | Meaning                                                                                                          |
| ----------- | ---- | --------- | ---------------------------------------------------------------------------------------------------------------- |
| `enabled`   | bool | `true`    | Load the plugin jars of the directory at start-up. Plugins are trusted code that runs inside the server process. |
| `directory` | path | `plugins` | Where the `*.jar` files are.                                                                                     |

## `bosses`

| Key      | Type | Default | Meaning                                       |
| -------- | ---- | ------- | --------------------------------------------- |
| `arenas` | list | `[]`    | Boss arenas of the default world. At most 64. |

Each arena:

| Key               | Type        | Meaning                                                                                                             |
| ----------------- | ----------- | ------------------------------------------------------------------------------------------------------------------- |
| `boss`            | string      | Boss id, `namespace:key`, for example `aethercube:stone_guardian`.                                                  |
| `position`        | `[x, y, z]` | The boss's feet and the centre of its 32-block arena. `y` must be within `world.min_height` and `world.max_height`. |
| `respawn_seconds` | int         | Delay after a defeat before it spawns again. 0 to 86400.                                                            |

A boss spawns when a player comes within 64 blocks and is removed after 60 seconds without a player within 64 blocks. Operators can also use `/boss spawn <id>`.

```yaml
bosses:
  arenas:
    - boss: aethercube:stone_guardian
      position: [120.5, 64, -40.5]
      respawn_seconds: 300
```

## `npcs`

NPCs are not saved. They are placed again at every start.

| Key              | Type | Default | Meaning                                                                                                                                                            |
| ---------------- | ---- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `spawn_defaults` | bool | `true`  | Rowan the Village Elder stands 4 blocks east of the world spawn and Tilda the Travelling Merchant 4 blocks west, each on the highest standable cell of its column. |
| `placements`     | list | `[]`    | More NPCs, at most 256. Each has `type` (`namespace:key`) and `position` (`[x, y, z]`).                                                                            |

## `gameplay`

| Key                 | Type   | Default    | Meaning                                                                                                                                                                        |
| ------------------- | ------ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `allow_creative`    | bool   | `false`    | When `false`, `/gamemode creative` is refused and a player saved in creative joins in survival. Spectator is always allowed.                                                   |
| `allow_flight`      | bool   | `false`    | Survival players may fly. A double jump toggles flight.                                                                                                                        |
| `default_game_mode` | string | `survival` | Mode of a player with no saved profile: `survival`, `creative` or `spectator`. A saved mode always wins. `creative` falls back to `survival` when `allow_creative` is `false`. |

## `permissions`

| Key         | Type           | Default | Meaning                                                                                                                                                                                                                                                   |
| ----------- | -------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `operators` | list of string | `[]`    | Offline names (3 to 16 letters, digits or `_`, case-insensitive, at most 256) made operators at every start-up. The list only adds operators. It is ignored in online mode, where players are accounts, and when `server.allow_public_offline` is `true`. |

See [Operators and permissions](https://docs.aethercube.fr/developers/running-a-server/operators-and-permissions.md).

## `loading_screen`

The screen every joining player sees while the world streams in. Every key is optional. An empty value keeps the client's default. See [Loading screen](https://docs.aethercube.fr/developers/running-a-server/loading-screen.md).

| Key           | Type           | Default | Meaning                                                                              |
| ------------- | -------------- | ------- | ------------------------------------------------------------------------------------ |
| `title`       | string         | empty   | At most 48 characters.                                                               |
| `subtitle`    | string         | empty   | At most 120 characters.                                                              |
| `tips`        | list of string | `[]`    | At most 16 tips of 160 characters.                                                   |
| `tip_seconds` | int            | `0`     | `0` (the client's 7 seconds) or 3 to 30.                                             |
| `accent`      | string         | empty   | `"#RRGGBB"` for the title and the progress bar. `#000000` is refused: use `#010101`. |
| `backdrop`    | string         | empty   | A backdrop id. Empty cycles through the client's backdrops.                          |

## `content_packs`

| Key         | Type | Default | Meaning                                                                                                                                   |
| ----------- | ---- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `enabled`   | bool | `true`  | Load and send content packs. When `false`, no pack is loaded or accepted. Plugin items and creature types are still described to clients. |
| `directory` | path | `packs` | `*.zip` files and pack folders, loaded in name order. A pack that breaks a rule is refused with a log line and the others load.           |
| `required`  | bool | `true`  | `true`: a client that cannot take packs is refused, and one that declines them is kicked. `false`: it joins without them.                 |

See [Content packs on the server](https://docs.aethercube.fr/developers/running-a-server/content-packs-settings.md).

## Complete example

```yaml
server:
  name: "Emberhold"
  online_mode: true
  port: 25565
  max_players: 50
  tags: [pve, adventure]
  view_distance: 8
tls:
  certificate_chain: config/tls/fullchain.pem
  private_key: config/tls/privkey.pem
backend:
  endpoint: https://api.example.com
  server_id: "00000000-0000-0000-0000-000000000000"
  secret_file: config/server-secret.txt
world:
  seed: 123456789
  difficulty: hard
storage:
  snapshot_interval_minutes: 30
  snapshot_retention: 8
loading_screen:
  title: "Emberhold"
  tips:
    - "Waystones stand on the ley lines."
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.aethercube.fr/developers/running-a-server/configuration-reference.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
