# How to Configure Your The Riftbreaker Server (config.cfg) (/docs/the-riftbreaker/server-config)



The Riftbreaker dedicated server reads its settings from a `config.cfg` file. EXOR ships a sample config in the server's install folder, next to `DedicatedServer.exe`. Source: EXOR's [setup guide](https://www.exorstudios.com/blog/rb-dedicated-setup).

Start the server with your config [#start-the-server-with-your-config]

By default the server opens in GUI mode. To run it headless (no graphics) and make it read your file, start it with:

```
DedicatedServer.exe cli=1 config=config.cfg
```

Settings [#settings]

| Setting                        | Example                                   | What it does                                                                                                    |
| ------------------------------ | ----------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| `server_name`                  | `set server_name "My Riftbreaker Server"` | Name shown in the in-game server browser                                                                        |
| `server_password`              | `set server_password ""`                  | Join password. Leave empty for no password                                                                      |
| `server_rcon_password`         | `set server_rcon_password ""`             | Password for remote admin (RCON). Must match on client and server. See [RCON](/docs/the-riftbreaker/rcon-admin) |
| `server_max_players_count`     | `set server_max_players_count "4"`        | Player limit, 1–4                                                                                               |
| `server_broadcast_enabled`     | `set server_broadcast_enabled "1"`        | `1` lists the server in the in-game server browser                                                              |
| `server_pause_game_when_empty` | `set server_pause_game_when_empty "1"`    | `1` pauses game progress while nobody is online                                                                 |
| `app_mode`                     | `set app_mode "server"`                   | **Required.** EXOR: include this line and never change it                                                       |
| `disable_steam`                | `set disable_steam "1"`                   | Commented out in the sample; for LAN use                                                                        |

The config also needs lines for the campaign, mission and difficulty. See [Game Modes & Saves](/docs/the-riftbreaker/game-modes-saves).

How many players? [#how-many-players]

EXOR: "The officially supported maximum number is 4. Each player above that number tanks performance considerably."
