Skip to main content
InfraAudit is configured entirely through environment variables. For Docker Compose deployments, set them in your .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:
Never use the default placeholder value for ENCRYPTION_KEY. Generate a unique key before deploying. See Secrets and encryption for details.

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.

Job scheduler

These variables control when background jobs run. Values are standard cron expressions.

Notifications

Slack

Email (SMTP)

AI recommendations

Vulnerability scanning

Logging

Metrics

Remediation