Skip to content

server.json config

Server-side WebGUI settings are stored in config/webgui/server.json.

The file is created automatically on first launch. A config/webgui/server.example.json template is also written for reference. If tokenSecretBase64 is empty, a new secret is generated and saved automatically.

Full example

json
{
  "enableTokens": true,
  "tokenTtlSeconds": 900,
  "queryParamName": "webgui_token",
  "tokenSecretBase64": "<auto-generated or your secret>",

  "autoHudOnJoin": false,
  "autoHudUrl": "",

  "mainMenuUrl": "",
  "updateCheckUrl": ""
}

Fields

Signed tokens

Signed tokens let your web backend verify that a request comes from a genuine WebGUI client.

FieldTypeDefaultDescription
enableTokensbooltrueAttach a signed token to every page URL the mod opens.
tokenTtlSecondsint900Token lifetime in seconds. Minimum enforced by the mod: 60.
queryParamNamestring"webgui_token"Query parameter name used to carry the token.
tokenSecretBase64stringautoBase64 HMAC secret shared with your backend. Auto-generated if empty.

Auto HUD

FieldTypeDefaultDescription
autoHudOnJoinboolfalseAutomatically open the HUD overlay when a player joins the server.
autoHudUrlstring""URL to open as the auto HUD. Required when autoHudOnJoin is true.
FieldTypeDefaultDescription
mainMenuUrlstring""URL sent to clients on join for the main menu screen (opened with F6). Empty = key does nothing.

Update check

FieldTypeDefaultDescription
updateCheckUrlstring""URL that returns version info. Supported formats: {"version":"1.2.3"} or {"tag_name":"v1.2.3","html_url":"..."}. Empty = disabled.

Notes

  • If you use signed tokens, your backend must verify them with the same secret defined in tokenSecretBase64.
  • The config path is config/webgui/server.json — note webgui, not webui.