# ============================================================ # TFM aInventory — Backend Environment Variables # Copy this file to .env and fill in real values. # NEVER commit the real .env file to Git! # ============================================================ # --- AI API Keys --- # Google Gemini API Key (required for AI label OCR onboarding) GEMINI_API_KEY=your_gemini_api_key_here # --- Security --- # JWT secret key — generate a strong random value for production: # python3 -c "import secrets; print(secrets.token_urlsafe(64))" # If not set, an ephemeral key is generated per-run (tokens invalidated on restart). JWT_SECRET_KEY=change-me-generate-a-secure-random-value # --- CORS --- # Comma-separated list of allowed frontend origins # Example for LAN deployment: # ALLOWED_ORIGINS=http://192.168.84.113:8907,https://192.168.84.113:8909 ALLOWED_ORIGINS=http://localhost:8907,https://localhost:8909 # --- Data Paths (overridden by start_server.sh / docker-compose) --- # DATA_DIR=/absolute/path/to/data # LOGS_DIR=/absolute/path/to/logs