Envault
Configuration

Environment Variables

Configuring the Envault server

Server Configuration

These environment variables are required to run the Envault server (Next.js app).

Required Variables

VariableDescriptionExample
NEXT_PUBLIC_SUPABASE_URLThe URL of your Supabase project.https://xyz.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEYThe anonymous public key for Supabase.eyJhbGcis...
SUPABASE_SERVICE_ROLE_KEYThe secret service role key. Critical Security.eyJhbGcis...
ENCRYPTION_KEY32-byte hex string used as the Master Key.a1b2c3d4...

Optional Variables

VariableDescriptionDefault
REDIS_URLURL for Redis caching.redis://redis:6379
RESEND_API_KEYResend API key for sending application emails.re_123456789...
LOG_LEVELLogging verbosity.info

GitHub Integration Variables (Optional)

If you enable GitHub integration, add the following:

VariableDescriptionExample
NEXT_PUBLIC_GITHUB_APP_NAMEGitHub App slug nameenvault
ENVAULT_GITHUB_APP_CLIENT_IDGitHub App client IDIv1.xxxxx
ENVAULT_GITHUB_APP_CLIENT_SECRETGitHub App client secretxxxxxx
ENVAULT_GITHUB_APP_PRIVATE_KEYGitHub App private key (single-line, \n escaped)"-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----"
ENVAULT_GITHUB_WEBHOOK_SECRETSecret to verify GitHub webhook signatureswhsec_xxxxx

Generating Keys

To generate a secure ENCRYPTION_KEY, use:

openssl rand -hex 32