JSON WEBTOKENS!!
This commit is contained in:
@@ -26,6 +26,20 @@ class Settings(BaseSettings):
|
||||
|
||||
)
|
||||
|
||||
# JWT Configuration
|
||||
jwt_secret_key: str = Field(
|
||||
default=os.getenv("JWT_SECRET_KEY", "your-secret-key-change-in-production"),
|
||||
description="Clave secreta para firmar JWT tokens"
|
||||
)
|
||||
jwt_algorithm: str = Field(
|
||||
default="HS256",
|
||||
description="Algoritmo para firmar JWT tokens"
|
||||
)
|
||||
jwt_expiration_hours: int = Field(
|
||||
default=int(os.getenv("JWT_EXPIRATION_HOURS", "24")),
|
||||
description="Horas de expiración del JWT token"
|
||||
)
|
||||
|
||||
# API
|
||||
api_title: str = "VoxPopuli Microservices"
|
||||
api_version: str = "1.0.0"
|
||||
@@ -45,7 +59,7 @@ class Settings(BaseSettings):
|
||||
description="Directorio para imágenes de reportes (dentro de storage_base_path)"
|
||||
)
|
||||
images_max_size_mb: int = Field(
|
||||
default=int(os.getenv("IMAGES_MAX_SIZE_MB", 4)),
|
||||
default=int(os.getenv("IMAGES_MAX_SIZE_MB", "4")),
|
||||
description="Tamaño máximo de imagen en MB"
|
||||
)
|
||||
images_allowed_types: list = Field(
|
||||
@@ -53,7 +67,7 @@ class Settings(BaseSettings):
|
||||
description="Tipos MIME permitidos para imágenes"
|
||||
)
|
||||
images_compression_quality: int = Field(
|
||||
default=int(os.getenv("IMAGES_COMPRESSION_QUALITY", 80)),
|
||||
default=int(os.getenv("IMAGES_COMPRESSION_QUALITY", "80")),
|
||||
description="Calidad de compresión WebP (0-100)"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user