Spaces:
Running
Running
| # ============================================ | |
| # AutoForm Backend Environment Configuration | |
| # ============================================ | |
| # Copy this file to .env and fill in your actual values | |
| # DO NOT commit .env to version control! | |
| # ============================================ | |
| # Database Configuration | |
| # ============================================ | |
| # SQLite (for development) | |
| DATABASE_URL=sqlite:///./app.db | |
| # PostgreSQL (for production) | |
| # DATABASE_URL=postgresql://user:password@localhost:5432/autoform | |
| # ============================================ | |
| # AI Model Configuration (Required) | |
| # ============================================ | |
| # Choose ONE of the following providers | |
| # OpenAI | |
| DEFAULT_MODEL=gpt-4o-mini | |
| OPENAI_API_KEY=your_openai_api_key_here | |
| # Anthropic (Claude) | |
| # DEFAULT_MODEL=anthropic/claude-3-5-sonnet-20241022 | |
| # ANTHROPIC_API_KEY=your_anthropic_api_key_here | |
| # Google (Gemini) | |
| # DEFAULT_MODEL=gemini/gemini-1.5-flash | |
| # GEMINI_API_KEY=your_gemini_api_key_here | |
| # ============================================ | |
| # Frontend URL | |
| # ============================================ | |
| FRONTEND_URL=http://localhost:5173 | |
| # ============================================ | |
| # Google OAuth (Required for Authentication) | |
| # ============================================ | |
| GOOGLE_CLIENT_ID=your_google_client_id_here | |
| GOOGLE_CLIENT_SECRET=your_google_client_secret_here | |
| GOOGLE_REDIRECT_URI=http://localhost:8000/api/auth/google/callback | |
| # ============================================ | |
| # Session Configuration | |
| # ============================================ | |
| SESSION_SECRET=change-this-to-a-random-secret-key | |
| SESSION_HTTPS_ONLY=0 | |
| # ============================================ | |
| # Stripe Payment Configuration (Optional) | |
| # ============================================ | |
| STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key | |
| STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret | |
| # Stripe Product IDs | |
| STRIPE_FREE_PRODUCT_ID=prod_free | |
| STRIPE_PRO_PRODUCT_ID=prod_pro | |
| STRIPE_ULTRA_PRODUCT_ID=prod_ultra | |
| # Stripe Price IDs - Monthly | |
| STRIPE_FREE_PRICE_MONTHLY_ID=price_free_monthly | |
| STRIPE_PRO_PRICE_MONTHLY_ID=price_pro_monthly | |
| STRIPE_ULTRA_PRICE_MONTHLY_ID=price_ultra_monthly | |
| # Stripe Price IDs - Yearly | |
| STRIPE_FREE_PRICE_YEARLY_ID=price_free_yearly | |
| STRIPE_PRO_PRICE_YEARLY_ID=price_pro_yearly | |
| STRIPE_ULTRA_PRICE_YEARLY_ID=price_ultra_yearly | |
| # ============================================ | |
| # Email Service Configuration (Optional) | |
| # ============================================ | |
| EMAIL_PROVIDER=unosend | |
| UNOSEND_API_KEY=your_unosend_api_key_here | |
| EMAIL_FROM_ADDRESS=noreply@autoform.ink | |
| SUPPORT_EMAIL=support@autoform.ink | |
| # ============================================ | |
| # AWS S3 Configuration (Optional - for file uploads) | |
| # ============================================ | |
| AWS_ACCESS_KEY_ID=your_aws_access_key | |
| AWS_SECRET_ACCESS_KEY=your_aws_secret_key | |
| AWS_REGION=us-east-1 | |
| S3_BUCKET_NAME=your-bucket-name | |
| S3_PREFIX=autoform/dev | |
| APP_ENV=dev | |
| # ============================================ | |
| # Database Migration | |
| # ============================================ | |
| # Set to 0 to disable automatic database migrations on startup | |
| AUTO_MIGRATE=1 | |
| # ============================================ | |
| # Notes | |
| # ============================================ | |
| # Required for basic functionality: | |
| # - DATABASE_URL (or leave as SQLite for dev) | |
| # - DEFAULT_MODEL + corresponding API key (OPENAI_API_KEY, ANTHROPIC_API_KEY, or GEMINI_API_KEY) | |
| # - GOOGLE_CLIENT_ID + GOOGLE_CLIENT_SECRET (for OAuth login) | |
| # - SESSION_SECRET (change from default!) | |
| # - FRONTEND_URL | |
| # Optional features: | |
| # - Stripe keys (for payments) | |
| # - Unosend keys (for emails) | |
| # - AWS S3 keys (for file uploads/OG images) | |