from pydantic_settings import BaseSettings


class Settings(BaseSettings):
    database_url: str = "postgresql://metafoliador:v2_password_here@localhost:5433/metafoliadorv2"
    main_database_url: str = "postgresql://metafoliador:v2_password_here@localhost:5433/metafoliador_main"
    main_domain: str = "metafoliador.local"
    rabbitmq_url: str = "amqp://guest:guest@localhost:5672/"
    redis_url: str = "redis://localhost:6379/0"
    log_level: str = "INFO"
    swagger_username: str = "admin"
    swagger_password: str = "tykUGJ#Nr3u9%DZ!HndX"
    index_xml_node_type: str = "cm:content"
    index_expedient_type: str = "metafoliador:indexExpedient"
    timezone: str = "America/Bogota"

    model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}


settings = Settings()
