Environment Variables Reference
Configure AuthentiVoice behavior through environment variables for different deployment scenarios.Overview
Environment variables allow you to configure AuthentiVoice without modifying code. Set these in your deployment environment,
.env files, or container configurations.Frontend Variables
React/Vite application settings
Backend Variables
FastAPI server configuration
Database Variables
PostgreSQL and Redis settings
Integration Variables
Third-party service credentials
Frontend Environment Variables
Core Configuration
Feature Flags
Frontend Examples
Backend Environment Variables
Core Configuration
Database Configuration
PostgreSQL Settings
PostgreSQL Settings
Redis Settings
Redis Settings
Storage Configuration
AI Service Configuration
- Google Gemini
- OpenAI
- Whisper
Security Configuration
Integration Environment Variables
Supabase Configuration
External Services
Email Service
Email Service
OneDrive Integration
OneDrive Integration
Webhook Configuration
Webhook Configuration
Monitoring Services
Monitoring Services
Environment File Examples
Development Environment
Best Practices
Security Best Practices
- Never commit
.envfiles to version control - Use different keys for different environments
- Rotate secrets regularly
- Use secret management services in production
Secret Management
- Docker Secrets
- Kubernetes Secrets
- Cloud Providers
Validation Script
Troubleshooting
Variable Not Loading
Variable Not Loading
Check:
- File name is
.env(not.env.txt) - File is in correct directory
- No spaces around
=sign - Quotes for values with spaces
- Restart application after changes
Connection Errors
Connection Errors
Database: Verify DATABASE_URL format and credentials
Redis: Check REDIS_URL and network connectivity
S3: Confirm endpoint URL and access keys
APIs: Validate API keys and endpoints
Production Issues
Production Issues
Security: Ensure production secrets are properly set
CORS: Verify allowed origins match your domain
SSL: Check HTTPS requirements for APIs
Logging: Set appropriate LOG_LEVEL
Next Steps
1
Create Environment Files
Set up
.env files for each environment2
Secure Secrets
Implement proper secret management
3
Validate Configuration
Run validation scripts before deployment
4
Document Custom Variables
Keep team documentation updated