"""PhantomAPI — Configuration via environment variables.""" from pydantic_settings import BaseSettings class Settings(BaseSettings): """Application settings loaded from .env file or environment variables.""" # --- Security --- API_SECRET_KEY: str = "change-me-to-a-strong-secret" # --- Server --- HOST: str = "0.0.0.0" PORT: int = 7860 # --- Browser Engine --- HEADLESS: bool = True BROWSER_TIMEOUT: int = 120000 # milliseconds CHATGPT_SESSION_TOKEN: str = "" # __Secure-next-auth.session-token PROXY_URL: str = "" # e.g. http://user:pass@host:port model_config = { "env_file": ".env", "env_file_encoding": "utf-8", "extra": "ignore", } settings = Settings()