Agrega backend FastAPI al proyecto
This commit is contained in:
13
recolector_backend/app/config.py
Normal file
13
recolector_backend/app/config.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
app_name: str = "Recolector Inteligente API"
|
||||
database_url: str = "sqlite:///./recolector.db"
|
||||
jwt_secret: str = "CAMBIA_ESTE_SECRETO_EN_PRODUCCION"
|
||||
jwt_expire_minutes: int = 1440
|
||||
|
||||
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user