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.

VariableDescriptionDefault
TXHOST_DATA_PATHPath to the txData folderOS-dependent
TXHOST_GAME_NAMERestrict to fivem or redmauto-detect
TXHOST_MAX_SLOTSEnforce maximum player count
TXHOST_QUIET_MODEHide FXServer output in stdoutfalse
TXHOST_API_TOKENToken for the /host/status endpoint

Networking

Control how fxPanel binds to network interfaces and which ports it uses.

VariableDescriptionDefault
TXHOST_TXA_URLPublic URL for fxPanel
TXHOST_TXA_PORTfxPanel web interface port40120
TXHOST_FXS_PORTForce a specific FXServer port
TXHOST_INTERFACEBind interface address0.0.0.0

Provider Customization

Hosting providers can brand the fxPanel interface with their name and logo.

VariableDescription
TXHOST_PROVIDER_NAMEHosting provider name displayed in the panel
TXHOST_PROVIDER_LOGOURL 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.

VariableDescription
TXHOST_DEFAULT_DB*Database credentials (host, port, username, password, name)
TXHOST_DEFAULT_CFXKEYDefault CFX license key
TXHOST_DEFAULT_ACCOUNTDefault 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.