Skip to content
sxsxPanel

Configuration

Environment variables, advanced options and the Events API.

Most of sxPanel is configured through the web panel itself during first-time setup. This page covers the lower-level knobs.

First-time setup

When you start FXServer with the sxPanel build in place, the console prints a setup URL. Open it to create your account and link your server — no manual config files required.

Start FXServer without +exec server.cfg. sxPanel starts automatically and manages the server lifecycle for you.

Environment variables & advanced options

Advanced deployments can be tuned with TXHOST_* environment variables (the same convention txAdmin used — legacy txAdminPort/txDataPath/txAdminInterface ConVars still work but print a deprecation warning telling you which TXHOST_* variable replaces them). The most useful ones are listed below; the panel also exposes a settings UI for everything else, including enabling or disabling the Discord bot.

VariableDefaultDescription
TXHOST_TXA_PORT40120Port the web panel listens on (cannot be 30120)
TXHOST_DATA_PATHtxData next to your artifactsAbsolute path to the data directory
TXHOST_INTERFACEIPv4 address to bind the web panel to
TXHOST_FXS_PORTThe FXServer game port (cannot be 40120-40150, which is reserved for the panel)
TXHOST_API_TOKENToken for the host/provider API, or disabled to turn it off
TXHOST_MAX_SLOTSMax player slots reported to the host/provider
TXHOST_QUIET_MODEfalseReduce console output

There is no SXPANEL_LOG_LEVEL-style verbosity variable — the system logger writes structured JSONL entries at a fixed level. There is also no dedicated variable to disable the Discord bot; toggle "Bot Enabled" in the panel's Discord settings instead.

Events API

Listen to sxPanel server events in your own resources with the Events API. This lets your scripts react to bans, warnings, whitelist changes and other panel activity in real time.

Migrating from txAdmin

sxPanel is a drop-in replacement. To migrate:

  1. Replace the monitor/ folder in your FXServer artifacts with the sxPanel build.
  2. Keep your existing txData directory in place — it works without modification.
  3. Restart FXServer.

See the Quick Start for the full walkthrough.

On this page