-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration
This document explains the various configuration options available for Stationeers Server UI. Configuration can be handled through three different methods, applied in the following order of precedence:
- Environment variables (highest priority) - DISENCOURAGED, USE
config.json -
config.jsonfile (middle priority) - Default values (lowest priority)
The server's user interface (UI) provides an intuitive way to adjust settings without directly editing the configuration file. To access it:
- Launch the server application.
- Locate and click the Config button on the main screen.
- A configuration window will appear, allowing you to modify key server parameters.
For detailed explanations of each parameter, refer to the Configuration Reference section below. If you're unsure about a setting, the UI includes tooltips or descriptions for most fields.
For a typical multiplayer server, consider the following parameters:
Basic Settings
-
Server Name: Set your server's name. -
Save Name: Your save name, call it what ever you want. -
Max Players: Set the maximum number of concurrent players. -
Server Password: Set a password if you want a private server. If using the Rotating Server Password feature you can leave this empty. -
Server Auth Secret: Put a different password here to restrict console use. -
Auto Save: Set to TRUE to enable automatic saving -
Save Interval: Set the interval between automatic saves, e.g. 300 seconds -
Auto Pause Server: Set to TRUE to automatically pause the server when no players are connected.
World Generation
-
World ID: This is the world to use. The name is specific to the map, check the Stationeers wiki for world names. Mod worlds will have thier custom name. -
Difficulty: This sets the game difficulty, with the options of: Creative, Easy, Normal, Stationeer. Capitalization is important, SSUI will provide feedback. -
Start Condition: This sets the starting difficulty. It is world dependent, check the Stationeers wiki for the correct names. SSUI will provide feedback. -
Start Location: This is a world specific location, check the Stationeers wiki for vanilla worlds. For mod worlds, check with the mod author.
Network Settings
-
Game Port: This is the port your clients will connect to, default 27016. -
Update Port: This is the Steam Update port, default is 27015. -
UPNP Enabled: Setting this to TRUE will enable UPNP automatic port forwarding. Note: It is recommended to set this to FALSE. -
Local IP Address: The bind address for the server to use. Usually setting to 0.0.0.0 is what you want. -
Server Visibile: Setting this to TRUE will advertise your server in the game server list. -
Use Steam P2P: This setting is to allow clients to connect through the SteamP2P system, it is recommended to set this to FALSE.
Advacned Features
-
Scheduled Gameserver Restart: This is a multi-format setting. 0 = Disabled. For an absolute time of day restart, use a time in either 12 or 24 hour format (e.g. 10:26PM or 22:26). For a releative restart schedule, put a value in minutes. 720 would restart the server every 12 hours. Note: this will be from the time of config save or last server restart. -
Auto Start Server on Startup: Setting this to TRUE will start the game server once SSUI has started. -
Enable Auto Game Server Updates: Setting this to TRUE will query for new updates and install them automatically. Note: the game server will restart to run the new version. -
Create SSUI Log Files: Default FALSE. Setting this to TRUE will create log files in /UIMod/logs. -
Create Game Server Log File: Default FALSE. Setting this to TRUE will create a new log file for each server start. -
Game Branch: Set the game branch you want to use. Usually this ispublic, but other optionsbetaorpreterrain. -
Server Executable Path: Shows the executable path. Its not editble in the UI for security reasons, but can be changed in the config.json file. -
Admin Password: Depreciated but available for legacy. Usually you should leave this empty. -
Additional Parameters: Advanced feature, only use if you know what you're doing! -
Show Expert Settings: Defaults to FALSE. Setting to TRUE will show more settings that are for advacned users. More info below.
All configuration options can now be set using environment variables. This is particularly useful for containerized deployments or when you want to override configuration without modifying the config.json file.
Environment variable names are uppercase with underscores separating words, corresponding to their JSON counterparts. For example:
-
discordTokenin JSON becomesDISCORD_TOKENas an environment variable -
ServerMaxPlayersin JSON becomesSERVER_MAX_PLAYERSas an environment variable
The config.json file stores all settings in JSON format and is located at ./UIMod/config/config.json. Changes to this file will be applied upon server restart.
If a configuration value is not specified in either environment variables or the config.json file, a default value will be used.
The following table provides a detailed breakdown of all available configuration options:
| Field Name | Environment Variable | Type | Description | Default Value |
|---|---|---|---|---|
| Example Values | ||||
| discordToken | DISCORD_TOKEN | string | Bot token for Discord integration | "" |
| controlChannelID | CONTROL_CHANNEL_ID | string | Discord channel ID for control commands | "" |
| statusChannelID | STATUS_CHANNEL_ID | string | Channel ID for server status updates | "" |
Click to view the full table
| Field Name | Environment Variable | Type | Description | Default Value |
|---|---|---|---|---|
| Discord Integration | ||||
| discordToken | DISCORD_TOKEN | string | Bot token for Discord integration | "" |
| controlChannelID | CONTROL_CHANNEL_ID | string | Discord channel ID for control commands | "" |
| statusChannelID | STATUS_CHANNEL_ID | string | Channel ID for server status updates | "" |
| connectionListChannelID | CONNECTION_LIST_CHANNEL_ID | string | Channel ID for player connection logs | "" |
| logChannelID | LOG_CHANNEL_ID | string | Channel ID for general server logs | "" |
| saveChannelID | SAVE_CHANNEL_ID | string | Channel ID for save notifications | "" |
| controlPanelChannelID | CONTROL_PANEL_CHANNEL_ID | string | Channel ID for interactive control panel | "" |
| DiscordCharBufferSize | DISCORD_CHAR_BUFFER_SIZE | int | Buffer size (characters) for Discord messages | 1000 |
| blackListFilePath | BLACKLIST_FILE_PATH | string | File path to the banlist | "./Blacklist.txt" |
| isDiscordEnabled | IS_DISCORD_ENABLED | bool | Enables/disables Discord integration | false |
| errorChannelID | ERROR_CHANNEL_ID | string | Channel ID for error logs | "" |
| Backup Configuration | ||||
| backupKeepLastN | BACKUP_KEEP_LAST_N | int | Number of last backups to retain | 2000 |
| isCleanupEnabled | IS_CLEANUP_ENABLED | bool | Enables cleanup of backups | false |
| backupKeepDailyFor | BACKUP_KEEP_DAILY_FOR | int | Hours to keep daily backups | 24 |
| backupKeepWeeklyFor | BACKUP_KEEP_WEEKLY_FOR | int | Hours to keep weekly backups | 168 |
| backupKeepMonthlyFor | BACKUP_KEEP_MONTHLY_FOR | int | Hours to keep monthly backups | 730 |
| backupCleanupInterval | BACKUP_CLEANUP_INTERVAL | int | Hours between cleanup operations | 730 |
| backupWaitTime | BACKUP_WAIT_TIME | int | Seconds to wait before copying backups to Safebackups | 30 |
| Game Settings | ||||
| gameBranch | GAME_BRANCH | string | Game branch to run (e.g., "public" or "beta") | "public" |
| ServerName | SERVER_NAME | string | Name displayed in server list | "Stationeers Server UI" |
| SaveInfo | SAVE_INFO | string | Save folder name, optionally with world type | "Moon Moon" |
| ServerMaxPlayers | SERVER_MAX_PLAYERS | string | Maximum number of players allowed | "6" |
| ServerPassword | SERVER_PASSWORD | string | Password for server access | "" |
| ServerAuthSecret | SERVER_AUTH_SECRET | string | Secret key for server authentication | "" |
| AdminPassword | ADMIN_PASSWORD | string | Admin password | "" |
| GamePort | GAME_PORT | string | Port for gameplay traffic | "27016" |
| UpdatePort | UPDATE_PORT | string | Port for server updates | "27015" |
| UPNPEnabled | UPNP_ENABLED | bool | Enables UPNP for automatic port forwarding | false |
| AutoSave | AUTO_SAVE | bool | Enables automatic saving | true |
| SaveInterval | SAVE_INTERVAL | string | Interval between autosaves in seconds | "300" |
| AutoPauseServer | AUTO_PAUSE_SERVER | bool | Pauses server when no players are connected | true |
| LocalIpAddress | LOCAL_IP_ADDRESS | string | IP address to bind server to (required on Linux) | "" |
| StartLocalHost | START_LOCAL_HOST | bool | Restricts server to local network | true |
| ServerVisible | SERVER_VISIBLE | bool | Makes server visible in public listings | true |
| UseSteamP2P | USE_STEAM_P2P | bool | Enables Steam Peer-to-Peer networking | true |
| Server UI Settings | ||||
| ExePath | EXE_PATH | string | Path to server executable | (platform-dependent) |
| AdditionalParams | ADDITIONAL_PARAMS | string | Extra command-line parameters | "" |
| users | SSUI_USERS | map[string]string | Map of usernames to hashed passwords | {} |
| authEnabled | SSUI_AUTH_ENABLED | bool | Enables authentication for UI access | false |
| JwtKey | SSUI_JWT_KEY | string | JWT key for authentication | (auto-generated) |
| AuthTokenLifetime | SSUI_AUTH_TOKEN_LIFETIME | int | Lifetime of auth token in minutes | 1440 |
| Debug | DEBUG | bool | Enables debug mode | false |
| CreateSSUILogFile | CREATE_SSUI_LOGFILE | bool | Enables log file writing | false |
| LogLevel | LOG_LEVEL | int | Sets the log level | 20 |
| subsystemFilters | SUBSYSTEM_FILTERS | []string | Filters for specific subsystem logs | [] |
| Update Settings | ||||
| isUpdateEnabled | IS_UPDATE_ENABLED | bool | Enables Auto Updater | true |
| allowPrereleaseUpdates | ALLOW_PRERELEASE_UPDATES | bool | Allows installation of prerelease updates | false |
| allowMajorUpdates | ALLOW_MAJOR_UPDATES | bool | Allows installation of major version updates | false |
This list is slightly outdated, sorry about that
-
LogLevel: Sets the logging severity level:
- 10: Debug
- 20: Info (Default)
- 30: Warn
- 40: Error
-
CreateSSUILogFile: When enabled, logs operations to
./UIMod/logs/. Default: false. -
SubsystemFilters: Array of subsystem names to filter logs, allowing you to focus on specific parts of the application.
Note: Gameserver logs are only saved to a file on Linux systems, where debug.log is written by the gameserver and are not included in the SSUI log files.
- Users: Map of usernames to hashed passwords for UI authentication.
- AuthEnabled: When true, requires authentication to access the UI.
- JwtKey: Secret key used for JWT token generation.
- AuthTokenLifetime: Duration in minutes that authentication tokens remain valid
- IsUpdateEnabled: When true, automatically checks for and downloads new executable updates from GitHub. Default: true.
- AllowPrereleaseUpdates: When true, includes prerelease versions in update checks. Default: false.
- AllowMajorUpdates: When true, allows installation of major version updates that might include breaking changes. Default: false.
The SaveInfo parameter has a special format that affects how the world is generated:
- Single word (e.g., "Moon"): Uses only the save name
- Two words (e.g., "Moon Moon"): First word is the save name, second is the world type
When this parameter is processed, the system automatically sets:
-
WorldName: The first part of SaveInfo -
BackupWorldName: The second part of SaveInfo (if provided)
Click to view the full example
{
"discordToken": "",
"controlChannelID": "",
"statusChannelID": "",
"connectionListChannelID": "",
"logChannelID": "",
"saveChannelID": "",
"controlPanelChannelID": "",
"DiscordCharBufferSize": 1000,
"blackListFilePath": "./Blacklist.txt",
"isDiscordEnabled": false,
"errorChannelID": "",
"backupKeepLastN": 2000,
"isCleanupEnabled": true,
"backupKeepDailyFor": 24,
"backupKeepWeeklyFor": 168,
"backupKeepMonthlyFor": 730,
"backupCleanupInterval": 730,
"backupWaitTime": 30,
"gameBranch": "public",
"ServerName": "StationeersServerWithUI",
"SaveInfo": "Moon Moon",
"ServerMaxPlayers": "8",
"ServerPassword": "secret",
"ServerAuthSecret": "",
"AdminPassword": "",
"GamePort": "27016",
"UpdatePort": "27015",
"UPNPEnabled": false,
"AutoSave": true,
"SaveInterval": "300",
"AutoPauseServer": true,
"LocalIpAddress": "0.0.0.0",
"StartLocalHost": false,
"ServerVisible": true,
"UseSteamP2P": true,
"ExePath": "",
"AdditionalParams": "",
"users": null,
"authEnabled": false,
"JwtKey": "",
"AuthTokenLifetime": 1440,
"Debug": false,
"CreateSSUILogFile": true,
"LogLevel": 20,
"subsystemFilters": [],
"isUpdateEnabled": true,
"allowPrereleaseUpdates": false,
"allowMajorUpdates": false
}Slightly outdated too, sorry about that
Using Environment Variables is disencouraged in never versions, use config.json
# Discord Configuration
export DISCORD_TOKEN="your_discord_token"
export IS_DISCORD_ENABLED=true
export CONTROL_CHANNEL_ID="123456789012345678"
# Game Settings
export SERVER_NAME="My Stationeers Server"
export SAVE_INFO="Mars Mars"
export SERVER_MAX_PLAYERS="10"
export SERVER_PASSWORD="mysecretpassword"
# Backup Configuration
export BACKUP_KEEP_LAST_N=500
export IS_CLEANUP_ENABLED=true
# UI Authentication
export SSUI_AUTH_ENABLED=true
export SSUI_USERS="admin:hashedpassword123,moderator:hashedpassword456"
export SSUI_JWT_KEY="your-secure-jwt-key"
# Update Settings
export IS_UPDATE_ENABLED=true
export ALLOW_PRERELEASE_UPDATES=false
# Logging
export LOG_LEVEL=10
export CREATE_SSUI_LOGFILE=true
export SUBSYSTEM_FILTERS="gameserver,backup,discord"When the server starts, it follows this process to determine the final configuration:
removed, use config.json
You can also customize your gameserver even further by adding parameters in the Additional Parameters field, both from the Json or the UI. These parameters allow you to control even more aspects of the game, from weird graphics stuff to experimental unity server configuration.
Click to view the full list of available parameters
get_Pathset_PathSaveLoadEqualsGetHashCodeGetTypeToString.ctorPathSettingsVersionShowFpsShowLatencyAutoSaveSaveIntervalSavePathHUDScaleTooltipOpacityIngamePortraitExtendedTooltipsChatFadeTimerDayLengthLegacyInventoryShowSlotToolTipsDeleteSkeletonOnDecayMonitorScreenWidthScreenHeightRefreshRateGraphicQualityTextureQualityFullScreenVsyncShadowsShadowResolutionShadowDistanceLightShadowDistanceRoomControlTickSpeedShadowNearPlaneOffsetShadowCascadesThingShadowModeThingShadowDistanceMultiplierRenderDistanceWorldOriginBrightnessFieldOfViewColorBlindParticleQualitySoftParticlesEnvironmentElementsExtendedTerrainVolumeLightPixelLightCountMaxThingLightsAntialiasingFrameLockAtmosphericScatteringAmbientOcclusionLensFlaresChunkRenderDistanceMineableRenderDistanceDisableWaterVisualizerCloudsHelmetOverlayWeatherEventQualityMasterVolumeSoundVolumeVoiceNotificationVolumeMusicVolumeInterfaceVolumeVirtualVoicesRealVoicesUserSpeakerModeServerNameStartLocalHostServerVisibleServerPasswordAdminPasswordServerAuthSecretServerMaxPlayersUpdatePortGamePortUPNPEnabledUseSteamP2PDisconnectTimeoutNetworkDebugFrequencyLocalIpAddressAutoPauseServerLanguageCodeVoiceLanguageCodeVoicePopupChatCameraSensitivityKeyListInvertMouseInvertMouseWheelInventoryMenuLiteMouseWheelZoomFirstRunVoiceNotificationsCompletedTutorialsCompletedScenariosDisplayHelperHintsAutoExpandHelperHintsVerticalMovementAxisHorizontalMovementAxisForwardMovementAxisVerticalLookAxisHorizontalLookAxisUseCustomWorkThreadsCountMinWorkerThreadsMinCompletionPortThreadsMaxWorkerThreadsMaxCompletionPortThreadsCoroutineTimeBudgetSmoothTerrainSmoothTerrainAngleConsoleBufferSizeLegacyCpu