Spaces:
Sleeping
Sleeping
| from pydantic_settings import BaseSettings | |
| from typing import Optional | |
| class Settings(BaseSettings): | |
| # Mock Data Configuration | |
| use_mock_data: bool = False # Set to True to use mock data instead of real Jira | |
| # Jira Configuration | |
| jira_server_url: str = "https://mock.atlassian.net" # Default for mock mode | |
| jira_email: str = "mock@example.com" # Default for mock mode | |
| jira_api_token: str = "mock_token" # Default for mock mode | |
| # GitHub Configuration | |
| github_token: Optional[str] = None | |
| github_org: Optional[str] = None | |
| # Database | |
| database_url: str = "sqlite:///./enterprise_intelligence.db" | |
| # Supabase | |
| supabase_url: Optional[str] = None | |
| supabase_key: Optional[str] = None | |
| # Redis | |
| redis_url: str = "redis://localhost:6379/0" | |
| # API Configuration | |
| api_host: str = "0.0.0.0" | |
| api_port: int = 8000 | |
| debug: bool = True | |
| # Security | |
| secret_key: str = "mock_secret_key_change_in_production" # Default for mock mode | |
| algorithm: str = "HS256" | |
| access_token_expire_minutes: int = 30 | |
| class Config: | |
| env_file = ".env" | |
| case_sensitive = False | |
| settings = Settings() | |