# MySQL connectionDATABASE_URL=mysql+pymysql://username:password@localhost:3306/database_name# MySQL-specific settingsMYSQL_CHARSET=utf8mb4MYSQL_COLLATION=utf8mb4_unicode_ci
# Google Gemini (Primary)GOOGLE_GEMINI_API_KEY=your_google_gemini_api_keyGOOGLE_GEMINI_MODEL=gemini-1.5-flash # or gemini-1.5-pro# DeepSeek (Code-specialized)DEEPSEEK_API_KEY=your_deepseek_api_keyDEEPSEEK_MODEL=deepseek-coder# Anthropic Claude (Advanced reasoning)ANTHROPIC_API_KEY=your_anthropic_api_keyANTHROPIC_MODEL=claude-3-5-sonnet-20241022# OpenAI (Fallback)OPENAI_API_KEY=your_openai_api_keyOPENAI_MODEL=gpt-4o-mini
At least one AI API key is required. Having multiple providers ensures better reliability and cost optimization.
# Google OAuth credentialsGOOGLE_CLIENT_ID=your_client_id.apps.googleusercontent.comGOOGLE_CLIENT_SECRET=GOCSPX-your_client_secret# OAuth scopesGOOGLE_OAUTH_SCOPES=openid,email,profile# Redirect URLs (must match Google Console)GOOGLE_REDIRECT_URI=https://yourdomain.com/auth/google/callback
# Stripe API keysSTRIPE_SECRET_KEY=sk_live_your_secret_key # or sk_test_ for testingSTRIPE_PUBLISHABLE_KEY=pk_live_your_publishable_key# Webhook configurationSTRIPE_WEBHOOK_SECRET=whsec_your_webhook_secretSTRIPE_WEBHOOK_ENDPOINT=https://yourdomain.com/api/webhooks/stripe# Product configurationSTRIPE_PRICE_ID_CREDITS=price_your_credits_price_idSTRIPE_PRICE_ID_PRO=price_your_pro_subscription_id
Credit System
Copy
# Credit pricing and limitsCREDITS_PER_DOLLAR=10FREE_CREDITS_NEW_USER=50FREE_CREDITS_MONTHLY=100MAX_CREDITS_PURCHASE=10000# Credit expirationCREDITS_EXPIRE_DAYS=365CREDITS_WARNING_THRESHOLD=10
# Backend API URLREACT_APP_API_URL=https://yourdomain.com/api# EnvironmentREACT_APP_ENVIRONMENT=production# API timeoutsREACT_APP_API_TIMEOUT=30000REACT_APP_UPLOAD_TIMEOUT=300000
ENVIRONMENT=developmentDEBUG=trueDATABASE_URL=sqlite:///./clipron_dev.dbFRONTEND_URL=http://localhost:3000LOG_LEVEL=DEBUG# Use test API keysSTRIPE_SECRET_KEY=sk_test_...
ENVIRONMENT=stagingDEBUG=falseDATABASE_URL=postgresql://staging_user:pass@staging-db:5432/clipron_stagingFRONTEND_URL=https://staging.yourdomain.com# Use test API keys but production-like setupSTRIPE_SECRET_KEY=sk_test_...
# Add to startup scriptrequired_vars=( "SECRET_KEY" "DATABASE_URL" "GOOGLE_GEMINI_API_KEY" "STRIPE_SECRET_KEY")for var in "${required_vars[@]}"; do if [[ -z "${!var}" ]]; then echo "Error: $var is not set" exit 1 fidone
Configuration Tip: Use a configuration management tool like Ansible, Terraform, or Kubernetes ConfigMaps for managing environment variables across multiple deployments.