Configuration
FlagTGL is configured through environment variables. Below are the key variables for the backend server.
| Variable | Description | Default |
|---|---|---|
DATABASE_URL | PostgreSQL connection string | required |
JWT_SECRET | Secret key for signing JWT tokens | required |
PORT | HTTP server port | 8080 |
STRIPE_SECRET_KEY | Stripe API key for billing | optional |
STRIPE_WEBHOOK_SECRET | Stripe webhook signing secret | optional |
ADMIN_EMAIL | Email for the initial super admin account | optional |
ADMIN_PASSWORD | Password for the initial super admin account | optional |
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.