Spaces:
Running
Running
Update session management in FastAPI app, modify OAuth scopes in environment configuration, and enhance .env.example with session security details.
1670330
| # AgentGraph Environment Configuration Template | |
| # Copy this file to .env and fill in your actual values | |
| # ============================================================================= | |
| # π REQUIRED CONFIGURATION | |
| # ============================================================================= | |
| # OpenAI API Configuration (REQUIRED for knowledge extraction) | |
| OPENAI_API_KEY=sk-your-openai-api-key-here | |
| OPENAI_MODEL_NAME=gpt-5-mini | |
| # ============================================================================= | |
| # π§ OPTIONAL CONFIGURATION | |
| # ============================================================================= | |
| # Azure OpenAI Configuration (Alternative to OpenAI) | |
| # Uncomment and configure if using Azure OpenAI instead | |
| # AZURE_API_KEY=your-azure-api-key | |
| # AZURE_API_BASE=https://your-resource.openai.azure.com/ | |
| # AZURE_API_VERSION=2023-12-01-preview | |
| # Anthropic Configuration (Optional) | |
| # ANTHROPIC_API_KEY=your-anthropic-api-key | |
| # ============================================================================= | |
| # π AI OBSERVABILITY PLATFORMS | |
| # ============================================================================= | |
| # Langfuse Configuration (Optional - for AI monitoring) | |
| # LANGFUSE_PUBLIC_KEY=pk_lf_your-public-key | |
| # LANGFUSE_SECRET_KEY=sk_lf_your-secret-key | |
| # LANGFUSE_HOST=https://cloud.langfuse.com | |
| # LangSmith Configuration (Optional - for trace monitoring) | |
| # LANGSMITH_API_KEY=your-langsmith-api-key | |
| # LANGSMITH_PROJECT=your-project-name | |
| # ============================================================================= | |
| # ποΈ DATABASE CONFIGURATION | |
| # ============================================================================= | |
| # Database URI (SQLite by default, can use PostgreSQL/MySQL) | |
| DB_URI=sqlite:///agent_monitoring.db | |
| # PostgreSQL Example: | |
| # DB_URI=postgresql://username:password@localhost:5432/agentgraph | |
| # MySQL Example: | |
| # DB_URI=mysql://username:password@localhost:3306/agentgraph | |
| # ============================================================================= | |
| # π SERVER CONFIGURATION | |
| # ============================================================================= | |
| # Server Settings | |
| HOST=0.0.0.0 | |
| PORT=7860 | |
| LOG_LEVEL=INFO | |
| # Python Path (usually set automatically) | |
| PYTHONPATH=/app | |
| # ============================================================================= | |
| # π SECURITY CONFIGURATION | |
| # ============================================================================= | |
| # Encryption key for storing sensitive data (auto-generated if not set) | |
| # ENCRYPTION_KEY=your-32-character-encryption-key | |
| # ============================================================================= | |
| # π§ͺ DEVELOPMENT CONFIGURATION | |
| # ============================================================================= | |
| # Development mode settings | |
| # DEBUG=false | |
| # RELOAD=false | |
| # ============================================================================= | |
| # π PERFORMANCE CONFIGURATION | |
| # ============================================================================= | |
| # Processing settings | |
| # MAX_WORKERS=4 | |
| # BATCH_SIZE=10 | |
| # TIMEOUT_SECONDS=300 | |
| # ============================================================================= | |
| # π HUGGING FACE SPACES CONFIGURATION | |
| # ============================================================================= | |
| # If deploying to Hugging Face Spaces, these are automatically set: | |
| # SPACE_ID=your-username/space-name | |
| # SPACE_HOST=https://your-username-space-name.hf.space | |
| # Session Security (Optional - auto-generated if not set) | |
| # SESSION_SECRET_KEY=your-secure-random-string-here | |