# ============================================
# StreamA2026 Environment Configuration
# ============================================
# Copy this file to .env and fill in your values
# NEVER commit .env to version control!
# ============================================

# ============================================
# Docker User Mapping (Linux only)
# ============================================
UID=2004
GID=2004
# Set to your user ID and group ID on Linux to avoid permission issues
# Get your IDs with: id -u and id -g
# On Windows, leave as 0 (root) or set to WSL2 user IDs if using WSL2

# ============================================
# Version Configuration
# ============================================
VERSION=0.0.0.0
BUILD_DATE=2026-04-17 01:40:42
# Build date in YYYY-MM-DD HH:MM:SS format (automatically updated by increment_version.py)
# Auto-incremented by test runner
# Format: MAJOR.MINOR.PATCH.BUILD (e.g., 1.0.0.0)
AUTO_INCREMENT_VERSION=false
# Set to true to automatically increment version after successful test run
# Default: false (only increment locally, not for users)
POSTGRES_PASSWORD=Rnly89901317!
# For production, use a strong random password (min 32 chars)
# Generate with: openssl rand -base64 32

# ============================================
# Redis Configuration
# ============================================
REDIS_PASSWORD=Rnly89901317!
# For production, use a strong random password
# Generate with: openssl rand -base64 32

# ============================================
# JWT Authentication
# ============================================
JWT_SECRET_KEY=59b56471d841cdbb31f085f5b0dcd07e3bad0ffd6db7ddeff46e68fdfea9d7e5
# IMPORTANT: Change this in production!
# Generate with: openssl rand -hex 32 (max 72 chars for bcrypt)
JWT_ALGORITHM=HS256
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=1440
JWT_REFRESH_TOKEN_EXPIRE_DAYS=7

# ============================================
# CORS Configuration
# ============================================
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080,http://localhost:80,http://localhost,https://factorks.de
# Comma-separated list of allowed origins
# For production, add your domain: https://yourdomain.com
# IMPORTANT: Do NOT use "*" in production for security
# Note: http://localhost (without port) is for Nginx proxy on port 80

# ============================================
# Traefik SSL Configuration
# ============================================
DOMAIN=factorks.de
# Your domain for SSL certificate
ACME_EMAIL=contact@factorks.de
# Email for Let's Encrypt notifications

# ============================================
# Logging Configuration
# ============================================
LOG_LEVEL=DEBUG
# Options: DEBUG, INFO, WARNING, ERROR, CRITICAL

# ============================================
# Frontend Configuration
# ============================================
VITE_API_URL=https://factorks.de
VITE_WS_URL=wss://factorks.de
# For production, use your domain: https://api.yourdomain.com

# ============================================
# Storage Configuration (Future)
# ============================================
# STORAGE_TYPE=local
# AWS_S3_BUCKET=
# AWS_ACCESS_KEY_ID=
# AWS_SECRET_ACCESS_KEY=
# AWS_REGION=us-east-1
# CDN_URL=

# ============================================
# Email Configuration (Future)
# ============================================
# SMTP_HOST=
# SMTP_PORT=587
# SMTP_USER=
# SMTP_PASSWORD=
# SMTP_FROM=
# SMTP_TLS=true

# ============================================
# Rate Limiting (Future)
# ============================================
# RATE_LIMIT_ENABLED=true
# RATE_LIMIT_PER_MINUTE=60

# ============================================
# FFmpeg Configuration (Future)
# ============================================
# FFMPEG_HLS_SEGMENT_DURATION=10
# FFMPEG_VIDEO_BITRATE=2500k
# FFMPEG_AUDIO_BITRATE=128k
# FFMPEG_RESOLUTION=1280x720

# ============================================
# Monitoring (Future)
# ============================================
# SENTRY_DSN=
# PROMETHEUS_ENABLED=false
# PROMETHEUS_PORT=9090
