""" Configuration du Dashboard Bot Detector """ from pydantic_settings import BaseSettings from typing import Optional class Settings(BaseSettings): # ClickHouse CLICKHOUSE_HOST: str = "clickhouse" CLICKHOUSE_PORT: int = 8123 CLICKHOUSE_DB: str = "mabase_prod" CLICKHOUSE_USER: str = "admin" CLICKHOUSE_PASSWORD: str = "" # API API_HOST: str = "0.0.0.0" API_PORT: int = 8000 # Frontend FRONTEND_PORT: int = 3000 # CORS CORS_ORIGINS: list = ["http://localhost:3000", "http://127.0.0.1:3000"] # Rate limiting RATE_LIMIT_PER_MINUTE: int = 100 class Config: env_file = ".env" case_sensitive = True settings = Settings()