55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
# YouTube Summarizer Backend Configuration
|
|
# Copy this file to .env and update with your actual values
|
|
|
|
# Environment
|
|
ENVIRONMENT=development
|
|
APP_NAME="YouTube Summarizer"
|
|
|
|
# Database
|
|
DATABASE_URL=sqlite:///./data/youtube_summarizer.db
|
|
# For PostgreSQL: postgresql://user:password@localhost/youtube_summarizer
|
|
|
|
# Authentication
|
|
JWT_SECRET_KEY=your-secret-key-change-in-production-minimum-32-chars
|
|
JWT_ALGORITHM=HS256
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=15
|
|
REFRESH_TOKEN_EXPIRE_DAYS=7
|
|
|
|
# Email Service (Required for production)
|
|
SMTP_HOST=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_USER=your-email@gmail.com
|
|
SMTP_PASSWORD=your-app-password
|
|
SMTP_FROM_EMAIL=noreply@yourdomain.com
|
|
SMTP_TLS=true
|
|
SMTP_SSL=false
|
|
|
|
# Email Configuration
|
|
EMAIL_VERIFICATION_EXPIRE_HOURS=24
|
|
PASSWORD_RESET_EXPIRE_MINUTES=30
|
|
|
|
# AI Services (DeepSeek required, others optional)
|
|
DEEPSEEK_API_KEY=sk-... # Required - Primary AI service
|
|
OPENAI_API_KEY=sk-... # Optional - Alternative model
|
|
ANTHROPIC_API_KEY=sk-ant-... # Optional - Alternative model
|
|
|
|
# YouTube API (Optional but recommended)
|
|
YOUTUBE_API_KEY=AIza...
|
|
|
|
# Application Security
|
|
SECRET_KEY=your-app-secret-key-change-in-production
|
|
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:3001
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_PER_MINUTE=30
|
|
MAX_VIDEO_LENGTH_MINUTES=180
|
|
|
|
# Redis (Optional - for production caching)
|
|
REDIS_URL=redis://localhost:6379/0
|
|
|
|
# Monitoring (Optional)
|
|
SENTRY_DSN=https://...@sentry.io/...
|
|
|
|
# API Documentation
|
|
DOCS_ENABLED=true
|
|
REDOC_ENABLED=true |