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.

Note

Environment variables are typically set in an .env file located in fxPanel's main directory, or passed directly through your server's launch configuration. All variables use the TXHOST_ prefix. Do not wrap values in quotes — fxPanel will reject quoted values and show an error.

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

Default credentials (especially database passwords and CFX keys) should only be set in secure hosting environments. They are visible to anyone with access to environment variables on the machine.