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.
| Variable | Default | Description |
|---|---|---|
TXHOST_TXA_PORT | 40120 | Port the web panel listens on (cannot be 30120) |
TXHOST_DATA_PATH | txData next to your artifacts | Absolute path to the data directory |
TXHOST_INTERFACE | — | IPv4 address to bind the web panel to |
TXHOST_FXS_PORT | — | The FXServer game port (cannot be 40120-40150, which is reserved for the panel) |
TXHOST_API_TOKEN | — | Token for the host/provider API, or disabled to turn it off |
TXHOST_MAX_SLOTS | — | Max player slots reported to the host/provider |
TXHOST_QUIET_MODE | false | Reduce 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:
- Replace the
monitor/folder in your FXServer artifacts with the sxPanel build. - Keep your existing
txDatadirectory in place — it works without modification. - Restart FXServer.
See the Quick Start for the full walkthrough.