# How to Configure Your DayZ Server (serverDZ.cfg) (/docs/dayz/server-config)



import { Step, Steps } from 'fumadocs-ui/components/steps';
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { File, Folder, Files } from 'fumadocs-ui/components/files';

DayZ uses `serverDZ.cfg` in the server root. The file uses C-like syntax — every line ends with a semicolon.

File Structure [#file-structure]

<Files>
  <Folder name="(server root)" defaultOpen>
    <File name="serverDZ.cfg" />

    <Folder name="mpmissions" defaultOpen>
      <Folder name="dayzOffline.chernarusplus" defaultOpen>
        <File name="types.xml" />

        <File name="globals.xml" />

        <File name="init.c" />

        <Folder name="storage_1" />
      </Folder>
    </Folder>

    <Folder name="profiles">
      <Folder name="BattlEye">
        <File name="BEServer_x64.cfg" />
      </Folder>
    </Folder>

    <Folder name="keys">
      <File name="mod1.bikey" />
    </Folder>
  </Folder>
</Files>

How to Edit [#how-to-edit]

<Steps>
  <Step>
    Stop the server [#stop-the-server]

    In the [XGamingServer Panel](https://panel.xgamingserver.com), go to **Console** and stop the server.
  </Step>

  <Step>
    Open serverDZ.cfg [#open-serverdzcfg]

    Click **Files** in the sidebar and open `serverDZ.cfg` in the server root.
  </Step>

  <Step>
    Make changes and save [#make-changes-and-save]

    Edit the settings. Every line must end with a semicolon (`;`). Click **Save Content**.
  </Step>

  <Step>
    Start the server [#start-the-server]

    Start from **Console**.
  </Step>
</Steps>

Full Settings Reference [#full-settings-reference]

<Tabs items={['Server Identity', 'Network & Ports', 'Security', 'Gameplay', 'Time & Day/Night', 'Persistence & Storage', 'Login Queue']}>
  <Tab value="Server Identity">
    | Setting           | Default | Description                                                                                                                                                                  |
    | ----------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | `hostname`        | `""`    | Server name shown in the browser                                                                                                                                             |
    | `password`        | `""`    | Join password (empty = public)                                                                                                                                               |
    | `passwordAdmin`   | `""`    | Admin/RCON password                                                                                                                                                          |
    | `description`     | `""`    | Description shown in the client server browser                                                                                                                               |
    | `maxPlayers`      | `60`    | Max concurrent players                                                                                                                                                       |
    | `enableWhitelist` | `0`     | 0 = off, 1 = on                                                                                                                                                              |
    | `shardId`         | `""`    | Six alphanumeric characters to mark as **Private** server. Remove or leave empty to appear in the Community browser. See [Make Server Public](/docs/dayz/make-server-public) |
  </Tab>

  <Tab value="Network & Ports">
    | Setting          | Default | Description                                                                                                    |
    | ---------------- | ------- | -------------------------------------------------------------------------------------------------------------- |
    | `steamQueryPort` | `2305`  | Steam browser query port (UDP). **Check your panel's Network tab** — XGamingServer may assign a different port |

    > The game port and Steam networking port are set via startup parameters, not in the cfg. Check the **Startup** tab for `-port=` values.

    Required Ports [#required-ports]

    | Port             | Protocol | Purpose                       |
    | ---------------- | -------- | ----------------------------- |
    | Game port        | UDP      | Game traffic (default 2302)   |
    | Game port +2     | UDP      | Steam networking              |
    | `steamQueryPort` | UDP      | Steam query (browser listing) |
    | RCON port        | TCP      | BattlEye RCON (default 2306)  |
  </Tab>

  <Tab value="Security">
    | Setting             | Default | Description                           |
    | ------------------- | ------- | ------------------------------------- |
    | `BattlEye`          | `1`     | Anti-cheat (0 = off, 1 = on)          |
    | `verifySignatures`  | `2`     | PBO signature check (must be `2`)     |
    | `forceSameBuild`    | `1`     | Require matching game version to join |
    | `allowFilePatching` | `1`     | Allow clients using `-filePatching`   |
  </Tab>

  <Tab value="Gameplay">
    | Setting                | Default | Description                                                   |
    | ---------------------- | ------- | ------------------------------------------------------------- |
    | `disable3rdPerson`     | `0`     | 1 = first person only                                         |
    | `disableCrosshair`     | `0`     | Toggle crosshair                                              |
    | `disablePersonalLight` | `1`     | Disable the personal light (ambient glow near player in dark) |
    | `lightingConfig`       | `0`     | Lighting configuration preset                                 |
    | `disableVoN`           | `0`     | Disable voice chat                                            |
    | `vonCodecQuality`      | `20`    | Voice quality (0–30)                                          |
    | `respawnTime`          | `5`     | Seconds before respawn                                        |
  </Tab>

  <Tab value="Time & Day/Night">
    | Setting                       | Default        | Description                                                                                                          |
    | ----------------------------- | -------------- | -------------------------------------------------------------------------------------------------------------------- |
    | `serverTime`                  | `"SystemTime"` | Initial time. Use `"SystemTime"` for local machine time, or a fixed value like `"2015/4/8/17/23"` (YYYY/MM/DD/HH/MM) |
    | `serverTimeAcceleration`      | `12`           | Time speed multiplier. 1 = real time, 12 = full day/night cycle in \~2 hours                                         |
    | `serverNightTimeAcceleration` | `1`            | Night speed multiplier (stacks with `serverTimeAcceleration`). Higher = shorter nights                               |
    | `serverTimePersistent`        | `0`            | Save time across restarts (0 = reset to `serverTime` on restart)                                                     |

    Time Examples [#time-examples]

    | `serverTimeAcceleration` | `serverNightTimeAcceleration` | Effect                                                          |
    | :----------------------: | :---------------------------: | --------------------------------------------------------------- |
    |            12            |               1               | Full cycle in \~2 hours, night same speed as day                |
    |            12            |               4               | Full cycle in \~2 hours, nights \~4x faster (very short nights) |
    |             4            |               2               | Day 4x speed, night 8x speed                                    |
    |             1            |               64              | Real-time days, \~22 minute nights                              |
  </Tab>

  <Tab value="Persistence & Storage">
    | Setting             | Default | Description                                                                         |
    | ------------------- | ------- | ----------------------------------------------------------------------------------- |
    | `instanceId`        | `1`     | Server instance ID. Identifies storage folders for persistence files                |
    | `storageAutoFix`    | `1`     | Check for corrupted persistence files and replace with empty ones (0 = off, 1 = on) |
    | `guaranteedUpdates` | `1`     | Communication protocol (always use 1)                                               |

    Persistence data is stored in `mpmissions/<template>/storage_1/`. See [Persistence Settings](/docs/dayz/persistence-settings).
  </Tab>

  <Tab value="Login Queue">
    | Setting                       | Default | Description                                                                                       |
    | ----------------------------- | ------- | ------------------------------------------------------------------------------------------------- |
    | `loginQueueConcurrentPlayers` | `5`     | Players processed simultaneously during login. Prevents performance drops during mass connections |
    | `loginQueueMaxPlayers`        | `500`   | Max players that can wait in the login queue                                                      |
  </Tab>
</Tabs>

Map Selection [#map-selection]

The map is set in the `Missions` class block at the bottom of `serverDZ.cfg`:

```
class Missions
{
    class DayZ
    {
        template="dayzOffline.chernarusplus";
    };
};
```

| Map        | Template                    | Notes                  |
| ---------- | --------------------------- | ---------------------- |
| Chernarus+ | `dayzOffline.chernarusplus` | Default vanilla map    |
| Livonia    | `dayzOffline.enoch`         | Requires Livonia DLC   |
| Sakhal     | `dayzOffline.sakhal`        | Requires Frostline DLC |

See [Map Guide](/docs/dayz/map-guide) for community maps.

Example serverDZ.cfg [#example-serverdzcfg]

```
hostname = "My DayZ Server";
password = "";
passwordAdmin = "MyAdminPass";
description = "A survival server";
enableWhitelist = 0;
maxPlayers = 60;

verifySignatures = 2;
forceSameBuild = 1;
BattlEye = 1;

disableVoN = 0;
vonCodecQuality = 20;

disable3rdPerson = 0;
disableCrosshair = 0;
disablePersonalLight = 1;
lightingConfig = 0;

serverTime = "SystemTime";
serverTimeAcceleration = 12;
serverNightTimeAcceleration = 1;
serverTimePersistent = 0;

guaranteedUpdates = 1;
loginQueueConcurrentPlayers = 5;
loginQueueMaxPlayers = 500;

instanceId = 1;
storageAutoFix = 1;

steamQueryPort = 2305;

class Missions
{
    class DayZ
    {
        template = "dayzOffline.chernarusplus";
    };
};
```

Related Guides [#related-guides]

* [Make Server Public](/docs/dayz/make-server-public)
* [How to Change the Map](/docs/dayz/map-guide)
* [How to Install Mods](/docs/dayz/mod-setup)
* [Admin & RCON Setup](/docs/dayz/admin-setup)
* [Persistence & Time](/docs/dayz/persistence-settings)
