.env file. For Kubernetes, set them in a Secret or ConfigMap and reference them in the deployment manifests.
Required variables
The backend will not start without all five of these variables set:Server
Set
ENVIRONMENT=production before exposing your deployment to the internet. It disables the /swagger UI and /debug endpoints.Database
Redis
Redis is optional. If the API cannot connect to Redis at startup, it disables caching and continues running. All features remain available; some responses may be slower.