Configuration
· DodoReaper GuardFREEEvery setting in config.json, with the default the plugin ships with and what it does. The commented_config.json file beside it carries the same explanations. HQ edits these settings for you: see Editing plugin settings.
General
| Setting | Default | What it does |
|---|---|---|
Debug | Default: false | true = extra diagnostic lines in the server log, including each memory check. |
ApiKey | Default: "YOUR_API_KEY_HERE" | your DodoReaper owner key (the same one HQ uses). Required. It applies when config.json is saved (no restart). |
ReportToPanel | Default: true | true = send this server's health (RAM, restarts, freezes) to DodoReaper. |
ReportIntervalSec | Default: 60 | fewest seconds between two health reports (minimum 15). |
RamEnabled | Default: true | true = watch this server's memory. false = none of the memory limits below apply. |
CheckIntervalSec | Default: 20 | seconds between two memory checks (minimum 5). |
RamWarnLimitMB | Default: ASE 16000 · ASA 28000 | MB of real RAM (as Task Manager shows) that sends a warning, no restart. 0 = off. |
RamRestartLimitMB | Default: ASE 24000 · ASA 32000 | MB of real RAM that starts a countdown, save and restart (3 checks in a row over it). 0 = off. |
RamCommitRestartLimitMB | Default: ASE 32000 · ASA 36000 | the same for COMMIT (RAM plus pagefile the server has claimed); commit can grow while RAM looks flat. 0 = off. |
RamCommitKillLimitMB | Default: ASE 48000 · ASA 54000 | MB of commit that restarts the server AT ONCE with NO save; only for a runaway. 0 = off. |
MachineWarnPct | Default: 90 | Missing key = 1.5 x RamCommitRestartLimitMB. percent of the whole machine's RAM in use that sends a warning, never a restart. 0 = off. |
HangEnabled | Default: true | true = restart the server (no save possible) when the game freezes for HangTimeoutSec. |
HangTimeoutSec | Default: 300 | seconds the game may freeze before that restart (minimum 30). |
StartupGraceSec | Default: 45 | seconds after the world has loaded before watching starts (nothing is watched while it loads). |
RestartEnabled | Default: true | true = Guard may restart the server. false = it only warns and reports. |
RestartOnWindowClose | Default: false | true = closing the server window starts the server again in a new window. |
RestartInSameWindow | Default: true | Keep false when a server manager starts and stops this server. true = an automatic restart reuses this console window. false = it opens a new one. |
SaveWorldBeforeRestart | Default: true | true = save the world when the countdown ends (RAM and commit restarts; a freeze or the kill limit cannot save). |
CountdownSec | Default: 60 | seconds of in-game warning before a RAM or commit restart. 0 = at once. |
RestartDeadlineSec | Default: 120 | seconds after the countdown for the save and restart to finish; past that Guard restarts |
RestartCommandLine | Default: "" | without a save (minimum 30). full command line for the new server. "" = the command line this server was started with. |
BroadcastMessages | Default: true | true = announce the restart countdown and the save to players in game. |
DiscordWebhookEnabled | Default: false | true = post alerts to DiscordWebhookUrl. |
DiscordWebhookUrl | Default: "" | Discord channel webhook URL (https://discord...). |
ServerName | Default: "" | name used in alerts. "" = the -ServerKey= launch tag, else the server's SessionName. |
DiscordOnHang | Default: true | true = alert when the game freezes, or a scheduled restart does not finish, and Guard restarts it. |
DiscordOnHighRam | Default: true | true = alert on memory warnings and memory restarts. |
DiscordOnRestart | Default: true | true = alert when Guard restarts the server, or skips a restart to stop a boot loop. |
DiscordWarnCooldownMin | Default: 5 | minutes before a memory warning is posted again (minimum 1). |
_images | Default: "Image URL shown in the Discord embed for each…" | — |
CrashImage | Default: "https://dodoreaper.com/files/images/DodoReape…" | Only a value starting with http is used. unused: Guard sends no crash alert. |
HangImage | Default: "https://dodoreaper.com/files/images/DodoReape…" | freeze alerts. |
LeakImage | Default: "https://dodoreaper.com/files/images/DodoReape…" | unused: Guard sends no leak alert (the RAM limits cover a leak). |
RamImage | Default: "https://dodoreaper.com/files/images/DodoReape…" | memory warnings and real-RAM restarts. |
RestartImage | Default: "https://dodoreaper.com/files/images/DodoReape…" | restart alerts. |
OfflineImage | Default: "https://dodoreaper.com/files/images/DodoReape…" | unused: Guard sends no offline alert. |
Optional settings
These keys are not in the shipped config.json. Add one only to change its default.
"MinRestartIntervalMin": 10— no automatic restart within this many minutes of the last one (stops a boot loop). 0 = off."RamOverSamplesToRestart": 3— checks in a row over a RAM or commit restart limit before the restart (minimum 1)."ReportKeepAliveSec": 900— a health report is still sent this often while RAM stays flat (minimum 300)."ReportDeltaMB": 500— a RAM change of this many MB sends a report (minimum 50)."AgentPort": 27600— port of DodoReaper HQ on this machine."GamePort": 7777— used only when the game port cannot be read from the launch command line.
About this file
DrGuard - watchdog for this server: warns, then saves and restarts it when its memory passes a limit, and restarts it when the game freezes. Alerts go to Discord and health reports to DodoReaper. Needs ApiKey: with no key, or the placeholder, Guard does nothing (the server itself is unaffected). Explanation only: the plugin reads config.json, not this file. config.json reloads by itself a moment after it is saved. Values saved from the DodoReaper panel also apply (checked every 30 seconds); whichever was saved last, file or panel, wins. ApiKey is read only from config.json.