# Environment variables for AikoDiary Backend # Copy this file to .env and fill in your values # For Hugging Face Spaces, add these as Secrets in the Space settings # ============================================================================ # REQUIRED # ============================================================================ # Gemini API Key (Required for AI chat functionality) GEMINI_API_KEY=your_gemini_api_key_here # ============================================================================ # GOOGLE CLOUD SPEECH-TO-TEXT (Choose ONE method) # ============================================================================ # METHOD 1: JSON Content (Recommended for Hugging Face) # Paste the ENTIRE content of your gcp_key.json file as the value # Example: GCP_CREDENTIALS_JSON={"type":"service_account","project_id":"..."} GCP_CREDENTIALS_JSON= # METHOD 2: File Path (For local development) # Path to your GCP service account JSON file GCP_SERVICE_ACCOUNT_FILE=gcp_key.json # Speech recognition language SPEECH_LANGUAGE_CODE=en-US # ============================================================================ # SERVER CONFIGURATION # ============================================================================ # Server port (7860 for Hugging Face, 5000 for local) SERVER_PORT=7860 SERVER_IP=0.0.0.0 # ============================================================================ # DATABASE (Optional - currently handled by PHP backend) # ============================================================================ ENABLE_FLASK_DB=false DB_HOST=localhost DB_USER=your_db_user DB_PASSWORD=your_db_password DB_NAME=your_db_name