Some updates for backend thingies
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import os
|
||||
from pydantic_settings import BaseSettings
|
||||
from pydantic import Field
|
||||
|
||||
@@ -6,19 +7,24 @@ class Settings(BaseSettings):
|
||||
|
||||
# Base de datos MySQL
|
||||
mysql_url: str = Field(
|
||||
default="mysql+pymysql://user:password@localhost/voxpopuli_users",
|
||||
default=os.getenv("MYSQL_URL", "mysql+pymysql://voxpopuli:voxpopuli_pass@localhost:3306/voxpopuli_users"),
|
||||
description="URL de conexión a MySQL para API de Usuarios"
|
||||
)
|
||||
|
||||
# Base de datos MongoDB
|
||||
mongodb_url: str = Field(
|
||||
default="mongodb://localhost:27017",
|
||||
default=os.getenv("MONGODB_URL", "mongodb://localhost:27017"),
|
||||
description="URL de conexión a MongoDB para API de Reportes"
|
||||
)
|
||||
mongodb_db: str = Field(
|
||||
default="voxpopuli_reports",
|
||||
description="Base de datos MongoDB"
|
||||
)
|
||||
|
||||
rabbitmq: str = Field (
|
||||
default=os.getenv("RABBITMQ_URI", "localhost")
|
||||
|
||||
)
|
||||
|
||||
# API
|
||||
api_title: str = "VoxPopuli Microservices"
|
||||
|
||||
Reference in New Issue
Block a user