# Database DATABASE_URL=postgres://ampel:ampel@localhost:5432/ampel # Redis (for future use) REDIS_URL=redis://localhost:6379 # JWT Configuration JWT_SECRET=your-secret-key-min-32-characters-long JWT_ACCESS_EXPIRY_MINUTES=15 JWT_REFRESH_EXPIRY_DAYS=7 # Encryption Key (for provider tokens) # IMPORTANT: The key must decode to EXACTLY 32 bytes (256 bits) for AES-256 encryption. # Generate a valid key with: openssl rand -base64 32 # Example output: nybpzOeKJ+hkxUJmupneLBmqlB7JyjfkyXp7LQ4+ZPQ= # Verify your key decodes to 32 bytes: echo "YOUR_KEY" | base64 -d | wc -c ENCRYPTION_KEY=your-base64-encoded-32-byte-key-here # Server HOST=0.0.0.0 PORT=8080 RUST_LOG=info,ampel=debug # CORS CORS_ORIGINS=http://localhost:3000,http://localhost:5173 # Frontend VITE_API_URL=http://localhost:8080/api # Translation API Keys (for ampel-i18n-builder) # 4-Tier Provider Architecture for 99.9% translation reliability # Tier 1: Systran API (Primary - Enterprise Neural MT) # Sign up: https://www.systran.io/en/translation-api/ # Best for: All languages, highest speed (100 req/sec) SYSTRAN_API_KEY=your-systran-api-key-here # Tier 2: DeepL API (Fallback - European Language Specialist) # Sign up: https://www.deepl.com/pro-api (if available) # Best for: de, fr, fi, sv, pl, cs, it, nl, es, pt DEEPL_API_KEY=your-deepl-api-key-here # Tier 3: Google Cloud Translation API (Fallback - Broad Coverage) # Sign up: https://cloud.google.com/translate # Best for: ar, th, vi, zh, ja, ko, hi GOOGLE_API_KEY=your-google-api-key-here # Tier 4: OpenAI GPT-5-mini (Final Fallback - Complex Content) # Sign up: https://platform.openai.com/api-keys # Best for: Context-aware translations, technical content OPENAI_API_KEY=your-openai-api-key-here # --- Autonomous Remediation (worker/sandbox) --- # Consumed at runtime by ampel-worker (remediation sweep, sandbox runner, metrics, notifier). # All have safe defaults; the worker starts with none of these set. # Prometheus /metrics HTTP listener port for the worker (u16). METRICS_PORT=9100 # Max repositories the remediation sweep processes concurrently (usize). AMPEL_MAX_CONCURRENT_REPOS=3 # Container runtime for the consolidation sandbox: podman | docker. # If unset, auto-detected from PATH (podman preferred). Uncomment to force one. # AMPEL_SANDBOX_RUNTIME=podman # OCI image used for the sandbox container. AMPEL_SANDBOX_IMAGE=ghcr.io/ampel/remediation-sandbox:latest # Shallow clone depth for repo checkout inside the sandbox (u32). AMPEL_CLONE_DEPTH=50 # Timeout for git/lockfile subprocess invocations inside the sandbox, in seconds (u64). AMPEL_SUBPROCESS_TIMEOUT_SECS=300 # Optional Slack notifications for remediation events. When REMEDIATION_SLACK_WEBHOOK_URL # is unset/empty, events are logged only (no network calls). # REMEDIATION_SLACK_WEBHOOK_URL=https://hooks.slack.com/services/XXX/YYY/ZZZ # REMEDIATION_SLACK_CHANNEL="#remediation"