Configuration
Environment variables and settings to customize your fxPanel instance.
Environment Variables
fxPanel is configured primarily through environment variables, making it easy for hosting providers (GSPs) to pre-configure instances. Set these before starting the FXServer process.
| Variable | Description | Default |
|---|---|---|
TXHOST_DATA_PATH | Path to the txData folder | OS-dependent |
TXHOST_GAME_NAME | Restrict to fivem or redm | auto-detect |
TXHOST_MAX_SLOTS | Enforce maximum player count | — |
TXHOST_QUIET_MODE | Hide FXServer output in stdout | false |
TXHOST_API_TOKEN | Token for the /host/status endpoint | — |
Networking
Control how fxPanel binds to network interfaces and which ports it uses.
| Variable | Description | Default |
|---|---|---|
TXHOST_TXA_URL | Public URL for fxPanel | — |
TXHOST_TXA_PORT | fxPanel web interface port | 40120 |
TXHOST_FXS_PORT | Force a specific FXServer port | — |
TXHOST_INTERFACE | Bind interface address | 0.0.0.0 |
Provider Customization
Hosting providers can brand the fxPanel interface with their name and logo.
| Variable | Description |
|---|---|
TXHOST_PROVIDER_NAME | Hosting provider name displayed in the panel |
TXHOST_PROVIDER_LOGO | URL to provider logo (max 224×96 px) |
Default Values
Pre-fill setup fields so server owners don't have to enter them manually. These are used as defaults during the initial setup wizard and deployer.
| Variable | Description |
|---|---|
TXHOST_DEFAULT_DB* | Database credentials (host, port, username, password, name) |
TXHOST_DEFAULT_CFXKEY | Default CFX license key |
TXHOST_DEFAULT_ACCOUNT | Default admin account for auto-setup |
Security Note
Environment variables containing credentials should be set securely and never committed to version control. Use your hosting provider's secrets management or a .env file excluded from source control.