# services/comfy-agent/app/config.py
from pydantic_settings import BaseSettings

class Settings(BaseSettings):
    SERVICE_NAME: str = "comfy-agent"
    API_HOST: str = "0.0.0.0"
    API_PORT: int = 8880

    COMFYUI_HTTP: str = "http://127.0.0.1:8188"
    COMFYUI_WS: str = "ws://127.0.0.1:8188/ws"

    NATS_URL: str = "nats://144.76.224.179:4222"  # NODE1 production IP
    NATS_SUBJECT_INVOKE: str = "agent.invoke.comfy"
    NATS_SUBJECT_IMAGE: str = "comfy.request.image"
    NATS_SUBJECT_VIDEO: str = "comfy.request.video"

    STORAGE_PATH: str = "/data/comfy-results"
    PUBLIC_BASE_URL: str = "http://212.8.58.133:8880/files"  # NODE3 IP

    MAX_CONCURRENCY: int = 1  # для LTX-2 стартово краще 1

settings = Settings()
