How to Protect Your Holdfast Config on Update
Game updates can overwrite default configuration and launch files. To keep your custom settings safe, always work from copies, never edit the default files directly.
This workflow is recommended by the official Holdfast server hosting wiki.
Why This Matters
Section titled “Why This Matters”Holdfast updates may replace:
- The default config file (
serverconfig_default.txton self-hosted servers,aleforge-default.txton AleForge) - Launch scripts (
LaunchServer.ps1on Windows,LaunchServer.shon Linux)
If you edit defaults directly, your custom server name, map rotation, admin list, and gameplay settings can be lost on the next update.
On AleForge
Section titled “On AleForge”AleForge uses aleforge-default.txt as the default config in holdfastnaw-dedicated/configs. To protect your settings:
- Open the Blacksmith’s Portal and go to
Files→holdfastnaw-dedicated/configs - Do not edit
aleforge-default.txtdirectly. Instead, create or upload a custom config file (for example,my-regiment-config.txt) - Use the AleForge Holdfast Config Generator to build your config, download it, and upload it with a custom filename
- Go to
Startupand set theConfig Filevariable to your custom filename - Restart your server
Your custom file won’t be touched by default config refreshes. The Config File Startup variable tells AleForge which file to load.
Updating Your Custom Config
Section titled “Updating Your Custom Config”When you need to change settings:
- Download your current config from
holdfastnaw-dedicated/configs(or import it into the Config Generator) - Make your changes and save with the same custom filename
- Upload the updated file to
holdfastnaw-dedicated/configs, overwriting the previous version - Restart your server, no need to change the
Config FileStartup variable if the filename stays the same
Self-Hosted Servers
Section titled “Self-Hosted Servers”Per the Holdfast wiki:
- Duplicate the default config:
serverconfig_default.txt → serverconfig_myserver.txt- Duplicate the launch script:
LaunchServer.ps1 → LaunchServer_myserver.ps1- Edit your custom launch script to point to your custom config:
--serverConfigFilePath "serverconfig_myserver.txt"- Always start the server using your custom launch script
On Linux, the equivalent launch command uses -serverConfigFilePath "serverconfig_myserver.txt" with the Holdfast NaW binary.
Docker Self-Hosting
Section titled “Docker Self-Hosting”If using the cm2network/holdfastnaw Docker image, config files are inside the container at /home/steam/holdfastnaw-dedicated/. Mount a volume for your custom config so it persists across container restarts and updates.
After a Game Update
Section titled “After a Game Update”- Restart your server (AleForge handles file updates automatically)
- Verify your
Config FileStartup variable still points to your custom filename - Check
Consolefor errors and connect to confirm your settings are intact - If settings reverted, re-upload your backed-up custom config to
holdfastnaw-dedicated/configs
Tip: Keep a local copy of your config file backed up outside the server. The Config Generator’s Import Configuration feature makes it easy to restore from a saved file.
Always use custom config filenames and point Startup (or your launch script) at them. Never rely on the default file for production settings.