Skip to main content
Every setting lives in /home/fivem/.env. The install script writes this for you. Edit it by hand if you need to change anything later, then systemctl restart nexora-dashboard to apply.

Required

VariableWhat it doesExample
PORTPort the Node server listens on. nginx proxies to this.3000
JWT_SECRETSecret used to sign login tokens. Must be random + secret.openssl rand -hex 32 output
FIVEM_API_KEYShared key between dashboard and Lua resource. Must match DASHBOARD_API_KEY convar in your game server server.cfg.openssl rand -hex 32 output
DB_HOSTMySQL host of your FiveM database.127.0.0.1
DB_PORTMySQL port.3306
DB_USERMySQL username.qbox
DB_PASSWORDMySQL password.supersecret
DB_NAMEMySQL database name.qbox_main

Optional: Discord OAuth

Leave these out / commented to disable Discord login.
VariableExample
DISCORD_CLIENT_ID123456789012345678
DISCORD_CLIENT_SECRETfrom Discord developer portal
DISCORD_REDIRECT_URIhttps://dash.yourdomain.com/api/auth/discord/callback
The redirect URI must exactly match what you set in the Discord application’s OAuth2 settings.

Optional: Cfx.re OAuth

Already filled in by the install script with sane defaults:
VariableDefault
CFX_FORUM_URLhttps://forum.cfx.re
CFX_APP_NAMENexora Dashboard
CFX_REDIRECT_URIhttps://yourdomain.com/api/auth/cfx/callback

After editing

sudo systemctl restart nexora-dashboard
sudo journalctl -u nexora-dashboard -f
Watch the log to make sure it boots without errors.

Security

Lock .env so other users can’t read it:
chmod 600 /home/fivem/.env
Never commit .env to git. The repo’s .gitignore already excludes it.