Configuration
Eranio
Configuration
The mod reads mods/Eranio_HytaleAdminAPI/config.json. The file is created with defaults on the first start; changes need a server restart. This is exactly the file the mod writes on its first start (token shortened to an example).
{
"token": "1b4e28ba-2fa1-11d2-883f-0016d3cca427",
"port": 5550,
"maxChatHistory": 500,
"requestTimeout": 10,
"chatPollInterval": 3,
"backupDir": "backup",
"worldDir": "universe",
"modsDir": "mods",
"bindAddress": "0.0.0.0"
}
| Key | Default | Meaning |
|---|---|---|
token |
random UUID | Value for the X-Admin-Token header |
port |
5550 |
HTTP port of the API |
bindAddress |
0.0.0.0 |
Network address; 127.0.0.1 for local access only |
maxChatHistory |
500 |
Chat messages kept in memory |
requestTimeout |
10 |
Timeout in seconds |
chatPollInterval |
3 |
Suggested chat polling interval in seconds for clients |
backupDir |
backup |
Backup folder if Hytale's backup config gives none |
worldDir |
universe |
Universe folder |
modsDir |
mods |
Mods folder |
gameLanguage |
auto |
Optional. Written by the Setup page of the panel; only the panel reads it (language of item and memory names). The mod ignores it |
Player worlds
Player world settings are not in this file. They are stored in player-worlds.json and changed with POST /api/playerworlds/config or in the panel (World page, Player world settings).
Hytale server config
The server's own config.json (server root) is read and changed with /api/serverconfig.