serverDZ.cfg
Main server configuration file. Sets server name, passwords, player slots, network ports, logging options, and mission template.
Overview
The serverDZ.cfg file is the main server configuration file for DayZ. Unlike other CE files, it uses a CFG key-value format, not XML. It controls server name, passwords, player limits, gameplay rules, and mission selection.
This file is located in the server root directory and is referenced by the -config startup parameter.
File Structure
The CFG format uses simple key-value pairs. Strings are wrapped in quotes, numbers are bare, and the Missions block uses a class-based syntax:
hostname = "My DayZ Server";
password = "";
passwordAdmin = "secretAdminPass";
maxPlayers = 60;
class Missions
{
class DayZ
{
template = "dayzOffline.chernarusplus";
};
};
Important: Every line must end with a semicolon. Missing semicolons will cause the server to fail to start or use default values.
Key Parameters
| Parameter | Type | Description |
|---|---|---|
| hostname | String | Server name shown in the server browser |
| password | String | Password required to join (empty = public) |
| passwordAdmin | String | Admin password for remote admin tools |
| maxPlayers | Integer | Maximum concurrent players (typically 60) |
| verifySignatures | Integer | 0 = off, 2 = verify mod signatures (recommended) |
| forceSameBuild | Integer | 1 = require matching game version |
| disableThirdPerson | Integer | 1 = first-person only server |
| serverTime | String | Initial server time, e.g. "2020/4/1/08/00" |
| serverTimeAcceleration | Integer | Time multiplier (1-64). 1 = real time |
| serverNightTimeAcceleration | Integer | Night-only time multiplier (1-64) |
| disablePersonalLight | Integer | 1 = disable the ambient player light at night |
Missions Template
The Missions block tells the server which map and mission folder to load:
class Missions
{
class DayZ
{
template = "dayzOffline.chernarusplus"; // Chernarus
// template = "dayzOffline.enoch"; // Livonia
};
};
The template value must match a folder name inside the mpmissions directory.
Network Settings
| Parameter | Default | Description |
|---|---|---|
| steamQueryPort | 27016 | Steam query port for server browser |
| guaranteedUpdates | 1 | 1 = guaranteed network updates |
| loginQueueConcurrentPlayers | 5 | Players processed simultaneously during login |
| loginQueueMaxPlayers | 500 | Maximum players in login queue |
Logging Options
enableDebugMonitor = 0; // Show debug info on screen adminLogPlayerHitsOnly = 0; // Log only player hits adminLogPlacement = 0; // Log base building placement adminLogBuildActions = 0; // Log build/dismantle actions adminLogPlayerList = 0; // Periodic player list logging
Additional logging is controlled via startup parameters like -adminlog and -netlog.
Mod Loading
Mods are not configured in serverDZ.cfg directly — they are loaded via the -mod= startup parameter. However, the verifySignatures setting affects mod validation:
verifySignatures = 2; // Verify mod signatures (recommended for public servers) // 0 = no verification (allows unsigned mods) // 2 = full verification (rejects unsigned/modified mods)
Example Configuration
hostname = "My DayZ Server | 1PP | Modded";
password = "";
passwordAdmin = "MySecureAdminPassword";
maxPlayers = 60;
verifySignatures = 2;
forceSameBuild = 1;
guaranteedUpdates = 1;
disableThirdPerson = 1;
disablePersonalLight = 1;
serverTime = "2020/4/1/08/00";
serverTimeAcceleration = 4;
serverNightTimeAcceleration = 8;
serverTimePersistent = 0;
enableDebugMonitor = 0;
adminLogPlayerHitsOnly = 0;
adminLogPlacement = 0;
adminLogBuildActions = 0;
adminLogPlayerList = 0;
steamQueryPort = 27016;
loginQueueConcurrentPlayers = 5;
loginQueueMaxPlayers = 500;
instanceId = 1;
storageAutoFix = 1;
respawnTime = 5;
class Missions
{
class DayZ
{
template = "dayzOffline.chernarusplus";
};
};