"""Data service configuration""" from pydantic_settings import BaseSettings from typing import List class Settings(BaseSettings): # Database DATABASE_URL: str = "postgresql+asyncpg://data_user:data_pass123@data-db:5432/data_db" # Redis REDIS_URL: str = "redis://redis:6379/3" # RabbitMQ RABBITMQ_URL: str = "amqp://bakery:forecast123@rabbitmq:5672/" # External APIs AEMET_API_KEY: str = "your-aemet-api-key-here" MADRID_OPENDATA_API_KEY: str = "your-madrid-opendata-key-here" # Service settings SERVICE_NAME: str = "data-service" SERVICE_VERSION: str = "1.0.0" # Auth AUTH_SERVICE_URL: str = "http://auth-service:8000" # CORS CORS_ORIGINS: List[str] = ["http://localhost:3000", "http://localhost:3001"] # Monitoring LOG_LEVEL: str = "INFO" ENABLE_METRICS: bool = True class Config: env_file = ".env" settings = Settings()