# BloxServer API Environment Variables # Copy this file to .env and fill in the values # ============================================================================= # Environment # ============================================================================= ENV=development # ENV=production # ============================================================================= # Database (PostgreSQL) # ============================================================================= DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/bloxserver # Set to true to auto-create tables on startup (disable in production) AUTO_CREATE_TABLES=true # ============================================================================= # Clerk Authentication # ============================================================================= CLERK_ISSUER=https://your-clerk-instance.clerk.accounts.dev CLERK_AUDIENCE=your-clerk-audience # ============================================================================= # Stripe Billing # ============================================================================= STRIPE_SECRET_KEY=sk_test_... STRIPE_WEBHOOK_SECRET=whsec_... # ============================================================================= # API Key Encryption # ============================================================================= # Generate with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())" API_KEY_ENCRYPTION_KEY=your-fernet-key-here # ============================================================================= # CORS # ============================================================================= CORS_ORIGINS=http://localhost:3000,https://app.openblox.ai # ============================================================================= # Webhooks # ============================================================================= WEBHOOK_BASE_URL=https://api.openblox.ai/webhooks # ============================================================================= # Redis (optional, for caching/rate limiting) # ============================================================================= # REDIS_URL=redis://localhost:6379 # ============================================================================= # Docs # ============================================================================= ENABLE_DOCS=true