Skip to content

Configuration

HarborGuard is configured through environment variables.

Required Variables

VariableDescription
DATABASE_URLPostgreSQL connection string
REDIS_URLRedis connection string
NEXTAUTH_SECRETRandom secret for JWT signing
NEXTAUTH_URLPublic URL of your HarborGuard instance
ENCRYPTION_KEYAES-256 key for credential encryption

Optional Variables

VariableDescription
SENDGRID_API_KEYSendGrid API key for email notifications
STRIPE_SECRET_KEYStripe secret key for billing
STRIPE_WEBHOOK_SECRETStripe webhook signing secret
FLY_API_TOKENFly.io API token for cloud scans
HG_SENSOR_IMAGEDocker image for the scanner container

On this page