from pydantic_settings import BaseSettings # Removed unused import class Settings(BaseSettings): # Database DATABASE_URL: str = "postgresql://amo_user:amo_password@localhost:5432/amo_data" # AMO CRM API AMO_CRM_DOMAIN: str = "wecheap.amocrm.ru" AMO_CRM_ACCESS_TOKEN: str = "" # Make it optional with default empty string # Google Sheets API GOOGLE_SERVICE_ACCOUNT_FILE: str = "" # Make it optional GOOGLE_SCOPES: str = "https://www.googleapis.com/auth/spreadsheets" # Redis (for FastStream message broker) REDIS_URL: str = "redis://localhost:6379/0" # RabbitMQ (for FastStream message broker - alternative to Redis) RABBITMQ_URL: str = "amqp://admin:admin123@localhost:5672/" # API Settings API_V1_STR: str = "/api/v1" API_BASE_URL: str = "http://localhost:8000" # Base URL for internal API calls # Logging LOG_LEVEL: str = "INFO" class Config: env_file = ".env" case_sensitive = True settings = Settings()