Spaces:
Build error
Build error
| # ============================================================ | |
| # BankBot AI β Environment Configuration | |
| # ============================================================ | |
| # Copy this file to .env and fill in your values. | |
| # | |
| # FALLBACK CHAINS (no config needed for local dev): | |
| # AI: OpenAI β Groq β Ollama β offline rule-based | |
| # DB: PostgreSQL β SQLite (auto-fallback) | |
| # Cache: Redis β in-memory dict (auto-fallback) | |
| # | |
| # You only need ONE AI key for full functionality. | |
| # ============================================================ | |
| # βββ Database ββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Leave blank to use SQLite (great for local dev / demo) | |
| DATABASE_URL=postgresql://admin:adminpassword@localhost:5432/bankbot | |
| # Force SQLite regardless of DATABASE_URL | |
| USE_SQLITE=false | |
| # βββ Redis Cache βββββββββββββββββββββββββββββββββββββββββββββ | |
| # Leave blank to use in-memory cache (auto-fallback) | |
| REDIS_URL=redis://localhost:6379/0 | |
| # βββ AI Backends (Priority: OpenAI β Groq β Ollama β offline) | |
| # Priority 1: OpenAI β fastest, most capable | |
| # Get key: https://platform.openai.com/api-keys | |
| OPENAI_API_KEY=sk-your-openai-key-here | |
| OPENAI_MODEL=gpt-4o-mini | |
| # Priority 2: Groq β free tier, very fast inference | |
| # Get key: https://console.groq.com/keys | |
| GROQ_API_KEY=gsk_your-groq-key-here | |
| # Priority 3: Local Ollama β fully offline, no API key | |
| # Install: https://ollama.com β then: ollama pull llama3 | |
| OLLAMA_MODEL=llama3:latest | |
| # βββ Authentication βββββββββββββββββββββββββββββββββββββββββββ | |
| # IMPORTANT: Change this in production! | |
| # Generate: python -c "import secrets; print(secrets.token_hex(32))" | |
| JWT_SECRET_KEY=bankbot-dev-secret-change-in-production | |
| JWT_ALGORITHM=HS256 | |
| ACCESS_TOKEN_EXPIRE_MINUTES=60 | |
| # βββ CORS ββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # JSON array of allowed frontend origins | |
| # Production example: ["https://bankbot-ai.vercel.app"] | |
| BACKEND_CORS_ORIGINS=["http://localhost:3000"] | |
| # βββ Frontend ββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Backend API URL (no trailing slash) | |
| # Production: https://bankbot-api.onrender.com | |
| NEXT_PUBLIC_API_URL=http://localhost:8000 | |