# WindowsGSM.cfg

WindowsGSM.cfg will be auto-created after the game server installed successfully. This config file stores the most common parameters like *IP*, *port*, *map*, *maxplayer,* etc. These values will be loaded as server start parameters. If you would like to add custom start parameters, see #additional-parameters below.&#x20;

## Basic server settings

| Key             | Notes                                                                                                                                                                             |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| servergame      | Do **NOT** edit this field                                                                                                                                                        |
| servername      | <p>Game server name - Set the hostname of the game server here. </p><p><strong><code>⚠️ Some servers use their own server config to set the hostname</code></strong></p>          |
| serverip        | <p>Game server IP - Set the start IP of the game server here.</p><p><strong><code>⚠️ Some servers use their own server config to set the IP</code></strong></p>                   |
| serverport      | <p>Game server Port - Set the start port of the game server here.</p><p><strong><code>⚠️ Some servers use their own server config to set the Port</code></strong></p>             |
| serverqueryport | <p>Game server Query Port - Set the query port of the game server here.</p><p><strong><code>⚠️ Some servers use their own server config to set the Query Port</code></strong></p> |
| servermap       | Game server map - Set the startup map of the game server here.                                                                                                                    |
| servermaxplayer | Game server maxplayer - Set the max player of the game server here.                                                                                                               |
| servergslt      | Game server GSLT token - Set the GSLT token of the game server                                                                                                                    |
| serverparam     | Additional parameters - Set the addition start param here                                                                                                                         |

## CPU Priority and Affinity

| Key         | Notes                                                    |
| ----------- | -------------------------------------------------------- |
| cpupriority | CPU Priority - Set the default priority for game process |
| cpuaffinity | CPU Affinity - Set the default affinity for game process |

## Automation

| Key            | Notes |
| -------------- | ----- |
| autorestart    |       |
| autostart      |       |
| autoupdate     |       |
| updateonstart  |       |
| backuponstart  |       |
| restartcrontab |       |
| crontabformat  |       |

## Discord Webhook Alert

| Key                 | Notes |
| ------------------- | ----- |
| discordalert        |       |
| discordmessage      |       |
| discordwebhook      |       |
| autostartalert      |       |
| autorestartalert    |       |
| autoupdatealert     |       |
| restartcrontabalert |       |
| crashalert          |       |

## Miscellaneous

| Key          | Notes |
| ------------ | ----- |
| embedconsole |       |

## Default WindowsGSM.cfg format

Sample of [Minecraft: Java Edition Server](/getting-started/supported-game-servers/minecraft-java-edition.md)'s WindowsGSM.cfg

```csharp
servergame="Minecraft: Java Edition Server"
servername="WindowsGSM - Server #1"
serverip="10.0.0.2"
serverport="25565"
serverqueryport="25565"
servermap="world"
servermaxplayer="20"
servergslt=""
serverparam="-Xmx1024M -Xms1024M"

cpupriority="2"
cpuaffinity="11111111"

autorestart="0"
autostart="0"
autoupdate="0"
updateonstart="0"
backuponstart="0"

discordalert="0"
discordmessage=""
discordwebhook=""

restartcrontab="0"
crontabformat="0 6 * * *"

embedconsole="0"

autostartalert="1"
autorestartalert="1"
autoupdatealert="1"
restartcrontabalert="1"
crashalert="1"

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.windowsgsm.com/getting-started/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
