Skip to main content

Configuration

FlagTGL is configured through environment variables. Below are the key variables for the backend server.

VariableDescriptionDefault
DATABASE_URLPostgreSQL connection stringrequired
JWT_SECRETSecret key for signing JWT tokensrequired
PORTHTTP server port8080
STRIPE_SECRET_KEYStripe API key for billingoptional
STRIPE_WEBHOOK_SECRETStripe webhook signing secretoptional
ADMIN_EMAILEmail for the initial super admin accountoptional
ADMIN_PASSWORDPassword for the initial super admin accountoptional

All configuration is read at startup. The server will fail to start if required variables are missing. See the Getting Started guide for a complete setup walkthrough.